aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbashonly <88596187+bashonly@users.noreply.github.com>2023-08-27 18:33:25 -0500
committerGitHub <noreply@github.com>2023-08-27 23:33:25 +0000
commit56b3dc03354b75be995759d8441d2754c0442b9a (patch)
tree98ea1aacbbb988e9b626e90fe1082330df5246e2
parentd7aee8e310b2c4f21d50aac0b420e1b3abde21a4 (diff)
downloadhypervideo-pre-56b3dc03354b75be995759d8441d2754c0442b9a.tar.lz
hypervideo-pre-56b3dc03354b75be995759d8441d2754c0442b9a.tar.xz
hypervideo-pre-56b3dc03354b75be995759d8441d2754c0442b9a.zip
[ie/StagePlus] Fix m3u8 extraction (#7929)
Closes #7928 Authored by: bashonly
-rw-r--r--yt_dlp/extractor/stageplus.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/yt_dlp/extractor/stageplus.py b/yt_dlp/extractor/stageplus.py
index adb4ebbc2..4bed4d646 100644
--- a/yt_dlp/extractor/stageplus.py
+++ b/yt_dlp/extractor/stageplus.py
@@ -484,18 +484,15 @@ fragment BannerFields on Banner {
'url': 'url',
})) or None
- m3u8_headers = {'jwt': self._TOKEN}
-
entries = []
for idx, video in enumerate(traverse_obj(data, (
'performanceWorks', lambda _, v: v['id'] and url_or_none(v['stream']['url']))), 1):
formats, subtitles = self._extract_m3u8_formats_and_subtitles(
- video['stream']['url'], video['id'], 'mp4', m3u8_id='hls', headers=m3u8_headers)
+ video['stream']['url'], video['id'], 'mp4', m3u8_id='hls', query={'token': self._TOKEN})
entries.append({
'id': video['id'],
'formats': formats,
'subtitles': subtitles,
- 'http_headers': m3u8_headers,
'album': metadata.get('title'),
'album_artist': metadata.get('artist'),
'track_number': idx,