fix unknown vid_type query building

This commit is contained in:
Simon
2025-07-17 20:51:59 +07:00
parent c22fe144b0
commit 40f6ee60d4
2 changed files with 12 additions and 1 deletions

View File

@@ -23,7 +23,7 @@ class VideoQueryBuilder:
VideoTypeEnum.SHORTS: self.shorts_query,
}
if video_type:
if video_type and video_type != VideoTypeEnum.UNKNOWN:
# build query for specific type/s
if not isinstance(video_type, list):
video_type = [video_type]