match streams type with was_live

This commit is contained in:
simon 2023-01-07 09:58:53 +07:00
parent 646bc1b12e
commit db4798754a
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
1 changed files with 3 additions and 0 deletions

View File

@ -267,6 +267,9 @@ class PendingList(PendingIndex):
if vid["live_status"] in ["is_upcoming", "is_live"]:
return False
if vid["live_status"] == "was_live":
vid_type = VideoTypeEnum.STREAMS
return self._parse_youtube_details(vid, vid_type)
def _parse_youtube_details(self, vid, vid_type=VideoTypeEnum.VIDEOS):