adding error fallback

This commit is contained in:
unknown 2023-03-31 15:52:11 +02:00
parent e8211becde
commit c5df497d22
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ queue.process(5, async function (job, done) {
await database.createDatabaseVideo(id, videoUrl)
await redis.del(id)
} else {
await redis.set(id, 'error')
await redis.set(`blacklist:${id}`, 'error')
logger.info({ message: `Couldn't find file for ${video.title}, ${id}` })
return done()
}