mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
Update streamtypes.py (#3690)
This commit is contained in:
parent
ed267d17f2
commit
5d66e4eaf8
@ -127,8 +127,8 @@ class YoutubeStream(Stream):
|
||||
if (
|
||||
stream_data
|
||||
and stream_data != "None"
|
||||
and stream_data.get("actualStartTime", None) is not None
|
||||
and stream_data.get("actualEndTime", None) is None
|
||||
and stream_data.get("concurrentViewers", None) is not None
|
||||
):
|
||||
if video_id not in self.livestreams:
|
||||
self.livestreams.append(data["items"][0]["id"])
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user