[ie/StagePlus] Fix m3u8 extraction ()

Closes 
Authored by: bashonly
pull/7979/head
bashonly 2023-08-27 18:33:25 -05:00 zatwierdzone przez GitHub
rodzic d7aee8e310
commit 56b3dc0335
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 4 usunięć
yt_dlp/extractor

Wyświetl plik

@ -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,