Fix handling for non-existent or empty config files #61

Merged
JakeGuy11 merged 54 commits from master into master 2021-08-12 16:30:13 +00:00
Showing only changes of commit 42bf60db2c - Show all commits

View file

@ -58,7 +58,7 @@ const buildCommandFFmpeg = (videoAndAudio, onlyVid, onlyAudio, subtitles, output
'-c:v copy',
'-c:a copy'
);
args.push(output.split('.').pop().toLowerCase() === "mp4" ? '-c:s mov_text' : '*c:s ass')
args.push(output.split('.').pop().toLowerCase() === "mp4" ? '-c:s mov_text' : '-c:s ass')
args.push(...subtitles.map((sub, index) => `-metadata:s:${index + 2} language=${getLanguageCode(sub.language)}`));
args.push(`"${output}"`);
return args.join(' ');