From f7e71c22f6c08052aafff72c0b0605e7db5cc781 Mon Sep 17 00:00:00 2001 From: alikia2x Date: Sun, 2 Mar 2025 03:02:27 +0800 Subject: [PATCH] fix: empty author_info passed in that causes filter model to crash --- 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 fd29e8e..7641383 100644 --- a/lib/mq/exec/classifyVideo.ts +++ b/lib/mq/exec/classifyVideo.ts @@ -17,7 +17,7 @@ export const classifyVideoWorker = async (job: Job) => { const title = videoInfo.title?.trim() || "untitled"; const description = videoInfo.description?.trim() || "N/A"; const tags = videoInfo.tags?.trim() || "empty"; - const authorInfo = videoInfo.author_info; + const authorInfo = videoInfo.author_info || "N/A"; const label = await classifyVideo(title, description, tags, authorInfo, aid); if (label == -1) { logger.warn(`Failed to classify video ${aid}`, "ml");