mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-01 02:37:29 +01:00
[ie/StagePlus] Fix m3u8 extraction (#7929)
Closes #7928 Authored by: bashonly
This commit is contained in:
parent
d7aee8e310
commit
56b3dc0335
@ -484,18 +484,15 @@ def _real_extract(self, url):
|
|||||||
'url': 'url',
|
'url': 'url',
|
||||||
})) or None
|
})) or None
|
||||||
|
|
||||||
m3u8_headers = {'jwt': self._TOKEN}
|
|
||||||
|
|
||||||
entries = []
|
entries = []
|
||||||
for idx, video in enumerate(traverse_obj(data, (
|
for idx, video in enumerate(traverse_obj(data, (
|
||||||
'performanceWorks', lambda _, v: v['id'] and url_or_none(v['stream']['url']))), 1):
|
'performanceWorks', lambda _, v: v['id'] and url_or_none(v['stream']['url']))), 1):
|
||||||
formats, subtitles = self._extract_m3u8_formats_and_subtitles(
|
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({
|
entries.append({
|
||||||
'id': video['id'],
|
'id': video['id'],
|
||||||
'formats': formats,
|
'formats': formats,
|
||||||
'subtitles': subtitles,
|
'subtitles': subtitles,
|
||||||
'http_headers': m3u8_headers,
|
|
||||||
'album': metadata.get('title'),
|
'album': metadata.get('title'),
|
||||||
'album_artist': metadata.get('artist'),
|
'album_artist': metadata.get('artist'),
|
||||||
'track_number': idx,
|
'track_number': idx,
|
||||||
|
Loading…
Reference in New Issue
Block a user