aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbashonly <88596187+bashonly@users.noreply.github.com>2023-06-04 09:07:13 -0500
committerGitHub <noreply@github.com>2023-06-04 14:07:13 +0000
commit7bc92517463f5766e9d9b92c3823b5cf403c0e3d (patch)
tree1e0fe3539f785259446f50d063b5db08821710ed
parent4815d35c191e7d375b94492a6486dd2ba43a8954 (diff)
downloadhypervideo-pre-7bc92517463f5766e9d9b92c3823b5cf403c0e3d.tar.lz
hypervideo-pre-7bc92517463f5766e9d9b92c3823b5cf403c0e3d.tar.xz
hypervideo-pre-7bc92517463f5766e9d9b92c3823b5cf403c0e3d.zip
[extractor/shemaroome] Pass `stream_key` header to downloader (#7224)
Closes #7133 Authored by: bashonly
-rw-r--r--yt_dlp/extractor/shemaroome.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/yt_dlp/extractor/shemaroome.py b/yt_dlp/extractor/shemaroome.py
index 7a78c6e05..ec9938b8c 100644
--- a/yt_dlp/extractor/shemaroome.py
+++ b/yt_dlp/extractor/shemaroome.py
@@ -73,7 +73,10 @@ class ShemarooMeIE(InfoExtractor):
key = bytes_to_intlist(compat_b64decode(data_json['key']))
iv = [0] * 16
m3u8_url = unpad_pkcs7(intlist_to_bytes(aes_cbc_decrypt(url_data, key, iv))).decode('ascii')
- formats, m3u8_subs = self._extract_m3u8_formats_and_subtitles(m3u8_url, video_id, fatal=False, headers={'stream_key': data_json['stream_key']})
+ headers = {'stream_key': data_json['stream_key']}
+ formats, m3u8_subs = self._extract_m3u8_formats_and_subtitles(m3u8_url, video_id, fatal=False, headers=headers)
+ for fmt in formats:
+ fmt['http_headers'] = headers
release_date = self._html_search_regex(
(r'itemprop="uploadDate">\s*([\d-]+)', r'id="release_date" value="([\d-]+)'),