[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