FileInstanciator.InstanciationType videoType = new FileInstanciator.InstanciationType(profile.getVideoSetting());
FileInstanciator.CommentInstanciationType commentType = new FileInstanciator.CommentInstanciationType(profile.
- getCommentSetting(), profile.getCommentGetInfo().isSelfAdjustCommentNum(), profile.getCommentGetInfo().
- getBackComment(), profile.getCommentGetInfo().isReduceComment());
+ getCommentSetting(), profile.getCommentSetting().getCommentGetInfo().isSelfAdjustCommentNum(), profile.getCommentSetting().getCommentGetInfo().
+ getBackComment(), profile.getCommentSetting().getCommentGetInfo().isReduceComment());
FileInstanciator.InstanciationType tcommType = new FileInstanciator.InstanciationType(
profile.getCommentSetting());
/* $Id$ */
package saccubus.converter.classic.profile;
+import yukihane.saccubus.converter.profile.CommentGetInfo;
import yukihane.saccubus.converter.profile.CommentProfile;
import yukihane.saccubus.converter.profile.VideoProfile;
private final SFile file;
private final boolean download;
private final boolean delete;
+ private final CommentGetInfo commentGetInfo;
/**
* @param file 対象ファイル.
* @param download ダウンロードする必要があればtrue, ローカルファイルを用いるのであればfalse.
* @param delete 変換後にファイルを削除するのであればtrue, 残したままにするのであればfalse.
*/
- public InputFileSetting(SFile file, boolean download, boolean delete) {
+ public InputFileSetting(SFile file, boolean download, boolean delete, CommentGetInfo cominfo) {
this.file = file;
this.download = download;
this.delete = delete;
+ this.commentGetInfo = cominfo;
}
+ @Override
public SFile getFile() {
return file;
}
+ @Override
public boolean isDownload() {
return download;
}
public boolean isDelete() {
return delete;
}
+
+ @Override
+ public CommentGetInfo getCommentGetInfo() {
+ return commentGetInfo;
+ }
}
return outputFileSetting;
}
- @Override
public CommentGetInfo getCommentGetInfo() {
return commentGetInfo;
}
FfmpegOption newFfmpegOption = new FfmpegOption(ffmpeg.getFfmpegOption().getExtOption(), "", "", ff, "", false,
"", "", false);
- InputFileSetting newVideoSetting = new InputFileSetting(new SFile(true, new File(video)), false, false);
- InputFileSetting newCommentSetting = new InputFileSetting(new SFile(true, new File(comm)), false, false);
- InputFileSetting newTcommentSetting = new InputFileSetting(new SFile(true, new File(tcomm)), 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);
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.
// Nicobrowserダウンロードファイルは削除対象にならない.
boolean delete = setting.isDeleteAfterConvert() && (setting.getProcessKind() != VideoSaveKind.NICOBROWSER);
- return new InputFileSetting(videoFile, (setting.getProcessKind() == VideoSaveKind.SAVE), delete);
+ return new InputFileSetting(videoFile, (setting.getProcessKind() == VideoSaveKind.SAVE), delete,
+ buildCommentGetInfo());
}
private InputFileSetting buildCommentSetting() {
private CommentGetInfo buildCommentGetInfo() {
final InputCommentSetting setting = getInputCommentSetting();
- return new CommentGetInfo(setting.isSelfAdjustNumOfComment(), setting.getNumOfComment(), setting.isReduceComment());
+ return new CommentGetInfo(setting.isSelfAdjustNumOfComment(), setting.getNumOfComment(), setting.
+ isReduceComment());
}
private InputFileSetting buildTcommentSetting() {
private InputFileSetting createCommentSetting(saccubus.properties.InputFileSetting<Boolean> setting) {
SFile file = createSFile(setting);
- return new InputFileSetting(file, setting.getProcessKind().booleanValue(), setting.isDeleteAfterConvert());
+ return new InputFileSetting(file, setting.getProcessKind().booleanValue(), setting.isDeleteAfterConvert(),
+ buildCommentGetInfo());
}
* @author yuki
*/
public interface CommentProfile extends InputFileSetting {
+
+ CommentGetInfo getCommentGetInfo();
}
OutputProfile getOutputFileSetting();
- CommentGetInfo getCommentGetInfo();
-
boolean needsConvert();
Ffmpeg getFfmpeg();