FileInstanciator.InstanciationType tcommType = new FileInstanciator.InstanciationType(
profile.getTcommentSetting());
- fi = FileInstanciator.create(getStopFlag(), videoType, commentType, tcommType, profile.getLoginInfo(), movieId, time);
+ fi = FileInstanciator.create(getStopFlag(), videoType, commentType, tcommType, profile.getLoginInfo(), movieId,
+ time);
return fi;
}
/** @return 何か実行すべき処理があればtrue. */
private static boolean shouldRun(Profile profile) {
- return profile.getOutputFileSetting().isConvert() || profile.needsDownload();
+ return profile.getOutputFileSetting().isConvert() || needsDownload(profile);
+ }
+
+ /** @return 何かダウンロードするものがあればtrue. */
+ private static boolean needsDownload(Profile profile) {
+ return (profile.getVideoSetting().isDownload() || profile.getCommentSetting().isDownload() || profile.
+ getTcommentSetting().isDownload());
}
}
return loginInfo;
}
- /** @return 何かダウンロードするものがあればtrue. */
- @Override
- public boolean needsDownload() {
- return (videoSetting.isDownload() || commentSetting.isDownload() || tcommentSetting.isDownload());
- }
-
@Override
public InputFileSetting getVideoSetting() {
return videoSetting;
LoginInfo getLoginInfo();
- /** @return 何かダウンロードするものがあればtrue. */
- boolean needsDownload();
-
InputFileSetting getVideoSetting();
InputFileSetting getCommentSetting();
CommentGetInfo getCommentGetInfo();
- public boolean needsConvert();
+ boolean needsConvert();
- public Ffmpeg getFfmpeg();
+ Ffmpeg getFfmpeg();
- public GeneralSetting getGeneralSetting();
+ GeneralSetting getGeneralSetting();
}