From c5df497d22d19280307a363edad3511f55a4de23 Mon Sep 17 00:00:00 2001 From: unknown <89595418+unknownsrc@users.noreply.github.com> Date: Fri, 31 Mar 2023 15:52:11 +0200 Subject: [PATCH] adding error fallback --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 8af4a95..124cb54 100644 --- a/index.js +++ b/index.js @@ -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() }