auto-download duration limit
This commit is contained in:
parent
5430c9f397
commit
13fadb9e21
|
@ -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}` })
|
||||
|
||||
|
|
Loading…
Reference in New Issue