fix unknow vid_type in queue

This commit is contained in:
Simon 2025-07-13 08:40:49 +07:00
parent faf00bf35e
commit e6260f6919
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
1 changed files with 5 additions and 1 deletions

View File

@ -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":