}
};
- Converter = new Converter(url, wayBackField.getText(), getSetting().toProfile(), sl,
+ Converter = new Converter(url, getSetting().toProfile(), sl,
new ConvertStopFlag(scl));
doButton.setText(DoButtonStopString);
FutureTask<Boolean> task = new FutureTask<Boolean>(Converter);
boolean adjustNumOfCom = savePanel.getFixCommentNumCheckBox().isSelected();
return new InputCommentSetting(download, autoNaming, new File(folder), new File(file), delete, adjustNumOfCom,
- back_comment, reduceCommentCheckBox.isSelected());
+ back_comment, reduceCommentCheckBox.isSelected(), wayBackField.getText());
}
/**
private final Profile profile;
private final String movieId;
- private final String time;
/**
* コンバータを構築します.
* @param listener
* @param flag
*/
- public Converter(String url, String time, Profile profile,
+ public Converter(String url, Profile profile,
TextProgressListener listener, ConvertStopFlag flag) {
super(listener, flag);
throw new IllegalArgumentException("URL/IDの指定が不正です: " + url);
}
- this.time = time;
this.profile = profile;
}
profile.getCommentSetting());
fi = FileInstanciator.create(getStopFlag(), videoType, commentType, tcommType, profile.getLoginInfo(), profile.
- getProxySetting(), movieId, time);
+ getProxySetting(), movieId, profile.getCommentSetting().getBackLogPoint());
return fi;
}
private final boolean download;
private final boolean delete;
private final CommentGetInfo commentGetInfo;
+ private final String backLogPoint;
/**
* @param file 対象ファイル.
* @param download ダウンロードする必要があればtrue, ローカルファイルを用いるのであればfalse.
* @param delete 変換後にファイルを削除するのであればtrue, 残したままにするのであればfalse.
*/
- public InputFileSetting(SFile file, boolean download, boolean delete, CommentGetInfo cominfo) {
+ public InputFileSetting(SFile file, boolean download, boolean delete, CommentGetInfo cominfo, String backLogPoint) {
this.file = file;
this.download = download;
this.delete = delete;
this.commentGetInfo = cominfo;
+ this.backLogPoint = backLogPoint;
}
@Override
public boolean isReduceComment() {
return commentGetInfo.isReduceComment();
}
+
+ @Override
+ public String getBackLogPoint() {
+ return backLogPoint;
+ }
}
throw new IOException(e);
}
- Converter conv = new Converter("dummy", "", profile, tpl, new ConvertStopFlag(scl));
+ Converter conv = new Converter("dummy", profile, tpl, new ConvertStopFlag(scl));
ExecutorService es = Executors.newSingleThreadExecutor();
Future<Boolean> future = es.submit((Callable<Boolean>) conv);
try {
FfmpegOption newFfmpegOption = new FfmpegOption(ffmpeg.getFfmpegOption().getExtOption(), "", "", ff, "", false,
"", "", false);
- InputFileSetting newVideoSetting = new InputFileSetting(new SFile(true, new File(video)), false, false, commentGetInfo);
- InputFileSetting newCommentSetting = new InputFileSetting(new SFile(true, new File(comm)), false, false, commentGetInfo);
- InputFileSetting newTcommentSetting = new InputFileSetting(new SFile(true, new File(tcomm)), false, false, commentGetInfo);
+ InputFileSetting newVideoSetting = new InputFileSetting(new SFile(true, new File(video)), false, false, commentGetInfo, "");
+ InputFileSetting newCommentSetting = new InputFileSetting(new SFile(true, new File(comm)), false, false, commentGetInfo, "");
+ InputFileSetting newTcommentSetting = new InputFileSetting(new SFile(true, new File(tcomm)), false, false, commentGetInfo, "");
OutputFileSetting newOutputFileSetting = new OutputFileSetting(new SFile(true, new File(output)), true, false,
true, true);
Ffmpeg newFfmpeg = new Ffmpeg(ffmpeg.getFfmpeg(), ffmpeg.getVhook(), newFfmpegOption, ffmpeg.isVhookDisabled(), ffmpeg.
String tag = args[2];
String time = args.length < 4 ? "" : args[3];
SProperties setting = SProperties.loadSetting(mail, pass);
- Converter conv = new Converter(tag, time, setting.toProfile(), TextProgressListener.EMPTY_LISTENER, new ConvertStopFlag(
+ Converter conv = new Converter(tag, setting.toProfile(), TextProgressListener.EMPTY_LISTENER, new ConvertStopFlag(
ConvertStopFlag.StateChangeListener.EMPTY_LISTENER));
System.out.println("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-");
System.out.println("Saccubus on CUI");
private final boolean selfAdjustNumOfComment;
private final int numOfComment;
private final boolean reduceComment;
+ private final String backLogPoint;
public InputCommentSetting(boolean download, boolean autoNaming, File folder, File file, boolean deleteAfterConvert,
- boolean adjust, int numOfCom, boolean reduceComment) {
+ boolean adjust, int numOfCom, boolean reduceComment, String backLogPoint) {
super(Boolean.valueOf(download), autoNaming, folder, file, deleteAfterConvert);
this.selfAdjustNumOfComment = adjust;
this.numOfComment = numOfCom;
this.reduceComment = reduceComment;
+ this.backLogPoint = backLogPoint;
}
@Override
return new InputCommentSetting(download, autoNaming, new File(folder), new File(file), delete,
adjustNumOfComment,
- Integer.parseInt(numOfComment), false);
+ Integer.parseInt(numOfComment), false, "");
}
public final boolean isSelfAdjustNumOfComment() {
public boolean isReduceComment(){
return reduceComment;
}
+
+ public String getBackLogPoint() {
+ return backLogPoint;
+ }
}
boolean delete = setting.isDeleteAfterConvert() && (setting.getProcessKind() != VideoSaveKind.NICOBROWSER);
return new InputFileSetting(videoFile, (setting.getProcessKind() == VideoSaveKind.SAVE), delete,
- buildCommentGetInfo());
+ buildCommentGetInfo(), inputCommentSetting.getBackLogPoint());
}
private InputFileSetting buildCommentSetting() {
SFile file = createSFile(setting);
return new InputFileSetting(file, setting.getProcessKind().booleanValue(), setting.isDeleteAfterConvert(),
- buildCommentGetInfo());
+ buildCommentGetInfo(), inputCommentSetting.getBackLogPoint());
}
int getBackComment();
boolean isReduceComment();
+
+ // TODO 戻り値はlongにする
+ /** @過去ログを取得する時点 */
+ String getBackLogPoint();
}
};
ConvertStopFlag flag = new ConvertStopFlag(ConvertStopFlag.StateChangeListener.EMPTY_LISTENER);
- Converter conv = new Converter("sm7139747", null, null, listener, flag);
+ Converter conv = new Converter("sm7139747", null, listener, flag);
conv.call();
}
// /**