diff --git a/utils/auto.js b/utils/auto.js index 10d6169..deab7b2 100644 --- a/utils/auto.js +++ b/utils/auto.js @@ -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}` })