mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-18 03:11:29 +03:00
Fixed bug where downloading individual files failed for channel subscriptions
This commit is contained in:
@@ -2407,7 +2407,7 @@ app.post('/api/downloadFile', optionalJwt, async (req, res) => {
|
|||||||
basePath = path.join(usersFileFolder, req.user.uid, 'subscriptions');
|
basePath = path.join(usersFileFolder, req.user.uid, 'subscriptions');
|
||||||
else
|
else
|
||||||
basePath = config_api.getConfigItem('ytdl_subscriptions_base_path');
|
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 {
|
} else {
|
||||||
for (let i = 0; i < fileNames.length; i++) {
|
for (let i = 0; i < fileNames.length; i++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user