fix: empty author_info passed in that causes filter model to crash

This commit is contained in:
alikia2x (寒寒) 2025-03-02 03:02:27 +08:00
parent 5a22564526
commit f7e71c22f6
Signed by: alikia2x
GPG Key ID: 56209E0CCD8420C6

View File

@ -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");