diff options
author | foreignBlade <136548235+foreignBlade@users.noreply.github.com> | 2023-06-15 06:56:26 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-15 10:56:26 +0000 |
commit | f9213f8a2d7ba46b912afe1dd3ce6bb700a33d72 (patch) | |
tree | 96bdbc2ad33623822de41ba404826b21add5c6de | |
parent | fdd69db38924c38194ef236b26325d66ac815c88 (diff) | |
download | hypervideo-pre-f9213f8a2d7ba46b912afe1dd3ce6bb700a33d72.tar.lz hypervideo-pre-f9213f8a2d7ba46b912afe1dd3ce6bb700a33d72.tar.xz hypervideo-pre-f9213f8a2d7ba46b912afe1dd3ce6bb700a33d72.zip |
[extractor/stripchat] Fix extractor (#7306)
Closes #7305
Authored by: foreignBlade
-rw-r--r-- | yt_dlp/extractor/stripchat.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/yt_dlp/extractor/stripchat.py b/yt_dlp/extractor/stripchat.py index 4d2fb0608..b9523c865 100644 --- a/yt_dlp/extractor/stripchat.py +++ b/yt_dlp/extractor/stripchat.py @@ -42,14 +42,13 @@ class StripchatIE(InfoExtractor): elif not traverse_obj(data, ('viewCam', 'model', 'isLive'), expected_type=bool): raise UserNotLive(video_id=video_id) - 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', ( (('features', 'featuresV2'), 'hlsFallback', 'fallbackDomains', ...), 'hlsStreamHost'))): formats = self._extract_m3u8_formats( - f'https://b-{server}.{host}/hls/{model_id}/master/{model_id}_auto.m3u8', + f'https://edge-hls.{host}/hls/{model_id}/master/{model_id}_auto.m3u8', video_id, ext='mp4', m3u8_id='hls', fatal=False, live=True) if formats: break |