OSDN Git Service

通常のメッセージではプログレスバー表示を行わない
authoryukihane <yukihane.feather@gmail.com>
Tue, 30 Aug 2011 02:27:30 +0000 (11:27 +0900)
committeryukihane <yukihane.feather@gmail.com>
Tue, 30 Aug 2011 02:27:30 +0000 (11:27 +0900)
frontend/src/saccubus/worker/impl/convert/Convert.java
frontend/src/saccubus/worker/impl/download/Download.java

index e207f8c..bcc40f2 100644 (file)
@@ -86,12 +86,12 @@ public class Convert extends Worker<ConvertResult, ConvertProgress> {
             if (profile.isCommentOverlay()) {
                 transformedComment = File.createTempFile("vhk", ".tmp", profile.getTempDir());
                 final HideCondition hide = profile.getNgSetting();
-                publish(new ConvertProgress(PROCESS, 0.0, "コメントの中間ファイルへの変換中"));
+                publish(new ConvertProgress(PROCESS, -1.0, "コメントの中間ファイルへの変換中"));
                 ConvertToVideoHook.convert(commentFile, transformedComment, hide.getId(), hide.getWord());
             }
 
             checkStop();
-            publish(new ConvertProgress(PROCESS, 0.0, "動画の変換を開始"));
+            publish(new ConvertProgress(PROCESS, -1.0, "動画の変換を開始"));
 
             final int code = convert(transformedComment, outputFile);
             if (code != 0) {
index 044ce2c..5506f58 100644 (file)
@@ -260,7 +260,7 @@ public class Download extends Worker<DownloadResult, DownloadProgress> {
             // TODO 30秒間隔はコンフィグ設定できた方が良い
             final long needSleep = (30 * 1000L) - (now - lastStartTime);
             if(needSleep > 0L) {
-                publish(new DownloadProgress(DownloadStatus.PROCESS, 0.0, "過剰アクセス抑制待機 " + needSleep / 1000));
+                publish(new DownloadProgress(DownloadStatus.PROCESS, -1.0, "過剰アクセス抑制待機 " + needSleep / 1000));
                 Thread.sleep(needSleep);
             }
             lastStartTime = new Date().getTime();