OSDN Git Service

ダウンロード処理が必要な条件判定誤り修正
authoryukihane <yukihane.feather@gmail.com>
Mon, 29 Aug 2011 02:03:14 +0000 (11:03 +0900)
committeryukihane <yukihane.feather@gmail.com>
Mon, 29 Aug 2011 02:03:14 +0000 (11:03 +0900)
frontend/src/yukihane/inqubus/manager/TaskManage.java

index 52c0c4e..dbb1fcc 100644 (file)
@@ -44,7 +44,8 @@ public class TaskManage {
     public synchronized boolean add(RequestProcess request) {
         final DownloadProfile dp = request.getDownloadProfile();
         final ConvertProfile cp = request.getConvertProfile();
-        if (dp != null && !dp.getVideoProfile().isDownload() && !dp.getCommentProfile().isDownload()) {
+        if (dp != null && (dp.getVideoProfile().isDownload() || dp.getCommentProfile().isDownload())) {
+            // ダウンロードするものがあればまずダウンロード処理
             final Download task = new Download(dp, request.getVideoId(),
                     new DownloadListener(request.getRowId()));
             final Future<DownloadResult> future = downloadExecutorService.submit(task);