mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-27 06:10:12 +01:00
[extractor/stripchat] Improve error message (#5475)
Authored by: freezboltz
This commit is contained in:
parent
581e86b512
commit
3b87f4d943
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user