[extractor/stripchat] Improve error message (#5475)

Authored by: freezboltz
This commit is contained in:
Anant Murmu 2022-11-08 12:14:47 +05:30 committed by GitHub
parent 581e86b512
commit 3b87f4d943
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,6 +40,7 @@ def _real_extract(self, url):
server = traverse_obj(data, ('viewCam', 'viewServers', 'flashphoner-hls'), expected_type=str)
model_id = traverse_obj(data, ('viewCam', 'model', 'id'), expected_type=int)
formats = []
for host in traverse_obj(data, (
'config', 'data', (('featuresV2', 'hlsFallback', 'fallbackDomains', ...), 'hlsStreamHost'))):
formats = self._extract_m3u8_formats(
@ -47,6 +48,8 @@ def _real_extract(self, url):
video_id, ext='mp4', m3u8_id='hls', fatal=False, live=True)
if formats:
break
if not formats:
self.raise_no_formats('No active streams found', expected=True)
self._sort_formats(formats)