Update service.service.ts

This commit is contained in:
Sylvain Martens 2024-07-16 11:14:53 -04:00
parent 462931afdf
commit 84a262767e

View File

@ -288,7 +288,7 @@ async function checkPlaylists() {
}
for (const e of eps) {
if (isDownloading < maxDownloading && e.dataValues.status === 'waiting') {
if (isDownloading <= maxDownloading && e.dataValues.status === 'waiting') {
updatePlaylistByID(e.dataValues.id, 'preparing')
isDownloading++
server.logger.log({