boolean res = new FfmpegCommand(getListener(), getStopFlag(), commentFile, tcommFile, videoFile,
convertedVideoFile, profile.getFfmpeg(), profile.getGeneralSetting()).execute();
- if (res) {
- if (profile.getCommentSetting().isDelete()) {
- commentFile.delete();
- }
- if (profile.getVideoSetting().isDelete()) {
- videoFile.delete();
- }
- if (profile.getTcommentSetting().isDelete()) {
- tcommFile.delete();
- }
- }
return res;
}
if (!a.canRead()) {
throw new IllegalArgumentException("フォントが見つかりません。");
}
- } else {
- if (profile.getVideoSetting().isDelete()) {
- throw new IllegalArgumentException("変換しないのに、動画削除しちゃって良いんですか?");
- }
- if (profile.getCommentSetting().isDelete()) {
- throw new IllegalArgumentException("変換しないのに、コメント削除しちゃって良いんですか?");
- }
- if (profile.getTcommentSetting().isDelete()) {
- throw new IllegalArgumentException("変換しないのに、投稿者コメント削除しちゃって良いんですか?");
- }
}
}