mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-22 18:17:17 -05:00
[extractor/stripchat] Improve error message (#5475)
Authored by: freezboltz
This commit is contained in:
parent
581e86b512
commit
3b87f4d943
@ -40,6 +40,7 @@ class StripchatIE(InfoExtractor):
|
|||||||
server = traverse_obj(data, ('viewCam', 'viewServers', 'flashphoner-hls'), expected_type=str)
|
server = traverse_obj(data, ('viewCam', 'viewServers', 'flashphoner-hls'), expected_type=str)
|
||||||
model_id = traverse_obj(data, ('viewCam', 'model', 'id'), expected_type=int)
|
model_id = traverse_obj(data, ('viewCam', 'model', 'id'), expected_type=int)
|
||||||
|
|
||||||
|
formats = []
|
||||||
for host in traverse_obj(data, (
|
for host in traverse_obj(data, (
|
||||||
'config', 'data', (('featuresV2', 'hlsFallback', 'fallbackDomains', ...), 'hlsStreamHost'))):
|
'config', 'data', (('featuresV2', 'hlsFallback', 'fallbackDomains', ...), 'hlsStreamHost'))):
|
||||||
formats = self._extract_m3u8_formats(
|
formats = self._extract_m3u8_formats(
|
||||||
@ -47,6 +48,8 @@ class StripchatIE(InfoExtractor):
|
|||||||
video_id, ext='mp4', m3u8_id='hls', fatal=False, live=True)
|
video_id, ext='mp4', m3u8_id='hls', fatal=False, live=True)
|
||||||
if formats:
|
if formats:
|
||||||
break
|
break
|
||||||
|
if not formats:
|
||||||
|
self.raise_no_formats('No active streams found', expected=True)
|
||||||
|
|
||||||
self._sort_formats(formats)
|
self._sort_formats(formats)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user