import java.io.IOException;
import org.apache.commons.io.FilenameUtils;
import saccubus.ConvertStopFlag;
-import saccubus.converter.profile.InputFileSetting;
+import yukihane.saccubus.converter.profile.InputFileSetting;
import saccubus.net.TextProgressListener;
+import yukihane.saccubus.converter.profile.LoinProfile;
+import yukihane.saccubus.converter.profile.ProxyProfile;
/**
* ダウンロード処理を全く必要としない場合のファイルインスタンス化クラス.
InstanciationType videoType,
CommentInstanciationType commentType,
InstanciationType tcommType,
- LoginInfo li,
- String tag, String time) throws
+ LoinProfile li,
+ ProxyProfile proxy,
+ String tag,
+ long time) throws
IOException {
FileInstanciator getter;
- if (videoType.isDoanload() || commentType.isDoanload() || tcommType.isDoanload()) {
- getter = new WebFileInstanciator(stopFlag, videoType, commentType, tcommType, li, tag, time);
+ if (videoType.isDownload() || commentType.isDownload() || tcommType.isDownload()) {
+ getter = new WebFileInstanciator(stopFlag, videoType, commentType, tcommType, li, proxy, tag, time);
} else {
getter = new FileInstanciator(videoType, commentType, tcommType, tag);
}
*/
public final File getTcommFile(TextProgressListener listener) throws IOException {
File file = new FileLocator(tcommType.isAutoFileName(), tcommType.getInitFile(), getVideoIdWithBracket(),
- getVideoTitle(), ".txml").getFile();
+ getVideoTitle(), ".xml").getFile();
file = tcommFileGetter.get(file, listener);
return file;
}
this.initFile = fileSetting.getFile().getFile();
}
- public boolean isDoanload() {
+ public boolean isDownload() {
return download;
}
private final boolean autoCommentNum;
private final int backComment;
+ private final boolean reduceComment;
- public CommentInstanciationType(InputFileSetting fileSetting, boolean autoCommentNum, int backComment) {
+ public CommentInstanciationType(InputFileSetting fileSetting, boolean autoCommentNum, int backComment,
+ boolean reduceComment) {
super(fileSetting);
this.autoCommentNum = autoCommentNum;
this.backComment = backComment;
+ this.reduceComment = reduceComment;
}
public boolean isAutoCommentNum() {
public int getBackComment() {
return backComment;
}
+
+ boolean isReduceComment() {
+ return reduceComment;
+ }
}
}