import saccubus.ConvertStopFlag;
import yukihane.saccubus.converter.profile.InputFileSetting;
import saccubus.net.TextProgressListener;
-import yukihane.saccubus.converter.profile.LoginInfo;
+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()) {
+ 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;
+ }
}
}