import java.io.IOException;
import org.apache.commons.io.FilenameUtils;
import saccubus.ConvertStopFlag;
-import saccubus.converter.FileSetting;
-import saccubus.converter.Profile;
+import saccubus.converter.profile.InputFileSetting;
+import saccubus.converter.profile.Profile;
import saccubus.net.TextProgressListener;
/**
}
String baseName = FilenameUtils.getBaseName(fileName);
int s = baseName.indexOf(getVideoIdWithBracket());
- return baseName.substring(s + 1);
+ return baseName.replace(getVideoIdWithBracket(), "");
}
/**
/**
* \83t\83@\83C\83\8b\82ð\83C\83\93\83X\83^\83\93\83X\89»\82·\82é\95û\96@\82ð\8ew\92è\82·\82é\83N\83\89\83X.
*/
- public InstanciationType(FileSetting fileSetting) {
+ public InstanciationType(InputFileSetting fileSetting) {
this.download = fileSetting.isDownload();
this.autoFileName = !fileSetting.getFile().isFile();
this.initFile = fileSetting.getFile().getFile();
private final boolean autoCommentNum;
private final int backComment;
- public CommentInstanciationType(FileSetting fileSetting, boolean autoCommentNum, int backComment) {
+ public CommentInstanciationType(InputFileSetting fileSetting, boolean autoCommentNum, int backComment) {
super(fileSetting);
this.autoCommentNum = autoCommentNum;
this.backComment = backComment;