From 8158ce10c02b1c21879ad55970ca0b7fd0fbdfc8 Mon Sep 17 00:00:00 2001 From: alikia2x Date: Fri, 21 Mar 2025 21:06:01 +0800 Subject: [PATCH] fix: inserting videos into `songs` table regardless of classified label --- lib/mq/exec/classifyVideo.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mq/exec/classifyVideo.ts b/lib/mq/exec/classifyVideo.ts index 3541892..53aadd9 100644 --- a/lib/mq/exec/classifyVideo.ts +++ b/lib/mq/exec/classifyVideo.ts @@ -26,7 +26,7 @@ export const classifyVideoWorker = async (job: Job) => { await insertVideoLabel(client, aid, label); const exists = await aidExistsInSongs(client, aid); - if (!exists) { + if (!exists && label !== 0) { await insertIntoSongs(client, aid); }