Set suggested file suffix to ffmpegFileSuffix setting

This commit is contained in:
0xboobface 2020-02-22 14:48:45 +01:00
parent 351066e869
commit 855604aab5
1 changed files with 2 additions and 4 deletions

View File

@ -489,10 +489,8 @@ public class RecordingsTab extends Tab implements TabSelectionListener {
private String proposeTargetFilename(Recording recording) {
String path = recording.getPath().substring(1);
if(recording.isSegmented()) {
String filename = path.replace("/", "-");
if(!filename.endsWith(".mp4")) {
filename += ".mp4";
}
String fileSuffix = config.getSettings().ffmpegFileSuffix;
String filename = path.replace("/", "-").replace(".mp4", "") + '.' + fileSuffix;
return filename;
} else {
return new File(path).getName();