OSDN Git Service

NamePatternコンストラクタ変更に合わせた修正
authoryukihane <yukihane.feather@gmail.com>
Mon, 22 Aug 2011 22:41:00 +0000 (07:41 +0900)
committeryukihane <yukihane.feather@gmail.com>
Mon, 22 Aug 2011 22:41:00 +0000 (07:41 +0900)
frontend/src/saccubus/worker/Convert.java
frontend/src/yukihane/inqubus/util/OutputNamePattern.java

index 571fe0f..2bc3e2e 100644 (file)
@@ -55,7 +55,7 @@ public class Convert extends SwingWorker<ConvertResult, ConvertProgress> {
 
         final GeneralProfile gene = profile.getGeneralProfile();
         final OutputProfile outprof = profile.getOutputProfile();
-        final OutputNamePattern pattern = new OutputNamePattern();
+        final OutputNamePattern pattern = new OutputNamePattern(outprof.getFileName());
         final String id = outprof.getVideoId();
         pattern.setId(isNotEmpty(id) ? id : "");
         final String title = outprof.getTitile();
index e1a8e0e..1f0e520 100644 (file)
@@ -11,8 +11,8 @@ public class OutputNamePattern extends NamePattern {
     private static final String FILE_NAME_PATTERN = "{filename}";
     private String fileName = "";
 
-    public OutputNamePattern() {
-        super();
+    public OutputNamePattern(String pattern) {
+        super(pattern);
         setIsNotLow(true);
     }