auto-download duration limit

This commit is contained in:
unknown 2023-03-24 17:10:45 +01:00
parent 5430c9f397
commit 13fadb9e21
1 changed files with 5 additions and 0 deletions

View File

@ -40,6 +40,11 @@ async function handleDownload(channelId) {
continue
}
if (video.duration > 6300) {
logger.info({ message: `${video.title} is longer than 1h45m, ${id}` })
continue
}
await redis.set(id, 'downloading')
logger.info({ message: `Starting to download ${video.title}, ${id}` })