0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-22 02:15:12 +00:00

[Fancode] Fix live streams (#961)

Authored by: zenerdi0de
This commit is contained in:
zenerdi0de 2021-09-13 21:10:32 +05:30 committed by GitHub
parent ea706726d6
commit 9c95ac677e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -173,7 +173,7 @@ def _real_extract(self, url):
match_info = try_get(info_json, lambda x: x['data']['match'])
if match_info.get('status') != "LIVE":
if match_info.get('streamingStatus') != "STARTED":
raise ExtractorError('The stream can\'t be accessed', expected=True)
self._check_login_required(match_info.get('isUserEntitled'), True) # all live streams are premium only