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.Proxy;
/**
* ダウンロード処理を全く必要としない場合のファイルインスタンス化クラス.
InstanciationType videoType,
CommentInstanciationType commentType,
InstanciationType tcommType,
- LoginInfo li,
+ LoinProfile li,
+ Proxy proxy,
String tag, String 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);
}
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;
+ }
}
}