Fixed bug in subscriptions that caused audio files to be downloaded as webm

pull/216/head
Isaac Abadi 4 years ago
parent 6bed5851ed
commit 96cf1b87d1

@ -288,9 +288,9 @@ async function getVideosForSub(sub, user_uid = null) {
const ext = (sub.type && sub.type === 'audio') ? '.mp3' : '.mp4'
let fullOutput = appendedBasePath + '/%(title)s' + ext;
let fullOutput = `${appendedBasePath}/%(title)s.%(ext)s`;
if (sub.custom_output) {
fullOutput = appendedBasePath + '/' + sub.custom_output + ext;
fullOutput = `${appendedBasePath}/${sub.custom_output}.%(ext)s`;
}
let downloadConfig = ['-o', fullOutput, '-ciw', '--write-info-json', '--print-json'];

Loading…
Cancel
Save