From 96cf1b87d10c77756f5d8ed5c38051e2daf30927 Mon Sep 17 00:00:00 2001 From: Isaac Abadi Date: Sat, 26 Sep 2020 00:08:22 -0400 Subject: [PATCH] Fixed bug in subscriptions that caused audio files to be downloaded as webm --- backend/subscriptions.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/subscriptions.js b/backend/subscriptions.js index e65043e..a17dc1d 100644 --- a/backend/subscriptions.js +++ b/backend/subscriptions.js @@ -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'];