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);