ensure vid_type enum in __extract_vid_type
This commit is contained in:
parent
16ec1f694f
commit
64ac647ade
|
|
@ -386,7 +386,7 @@ class PendingList(PendingIndex):
|
|||
and video_data["vid_type"]
|
||||
and str(video_data["vid_type"]) in VideoTypeEnum.values_known()
|
||||
):
|
||||
return str(video_data["vid_type"])
|
||||
return VideoTypeEnum(video_data["vid_type"]).value
|
||||
|
||||
if video_data.get("live_status") == "was_live":
|
||||
return VideoTypeEnum.STREAMS.value
|
||||
|
|
|
|||
Loading…
Reference in New Issue