From e6260f6919ed519c5849db9d4336f90efb045f6f Mon Sep 17 00:00:00 2001 From: Simon Date: Sun, 13 Jul 2025 08:40:49 +0700 Subject: [PATCH] fix unknow vid_type in queue --- backend/download/src/queue.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/backend/download/src/queue.py b/backend/download/src/queue.py index 25f6a8e9..f5554a18 100644 --- a/backend/download/src/queue.py +++ b/backend/download/src/queue.py @@ -381,7 +381,11 @@ class PendingList(PendingIndex): def __extract_vid_type(self, video_data) -> str: """build vid type""" - if "vid_type" in video_data: + if ( + "vid_type" in video_data + and video_data["vid_type"] + and str(video_data["vid_type"]) in VideoTypeEnum.values_known() + ): return str(video_data["vid_type"]) if video_data.get("live_status") == "was_live":