Update streamtypes.py (#3690)

This commit is contained in:
jack1142 2020-03-28 01:35:51 +01:00 committed by GitHub
parent ed267d17f2
commit 5d66e4eaf8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -127,8 +127,8 @@ class YoutubeStream(Stream):
if ( if (
stream_data stream_data
and stream_data != "None" 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("actualEndTime", None) is None
and stream_data.get("concurrentViewers", None) is not None
): ):
if video_id not in self.livestreams: if video_id not in self.livestreams:
self.livestreams.append(data["items"][0]["id"]) self.livestreams.append(data["items"][0]["id"])