From e5f9694da04cde44faa9361d9a35a4af15b61f5c Mon Sep 17 00:00:00 2001 From: Tzahi12345 Date: Thu, 30 Apr 2020 13:29:47 -0400 Subject: [PATCH] Fixed bug where downloading individual files failed for channel subscriptions --- backend/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app.js b/backend/app.js index aaa4550..803b674 100644 --- a/backend/app.js +++ b/backend/app.js @@ -2407,7 +2407,7 @@ app.post('/api/downloadFile', optionalJwt, async (req, res) => { basePath = path.join(usersFileFolder, req.user.uid, 'subscriptions'); else basePath = config_api.getConfigItem('ytdl_subscriptions_base_path'); - file = path.join(__dirname, basePath, (subscriptionPlaylist ? 'playlists' : 'channels'), subscriptionName, fileNames + '.mp4') + file = path.join(__dirname, basePath, (subscriptionPlaylist === 'true' ? 'playlists' : 'channels'), subscriptionName, fileNames + '.mp4') } } else { for (let i = 0; i < fileNames.length; i++) {