diff options
author | Ashish Gupta <39122144+Ashish0804@users.noreply.github.com> | 2022-01-02 02:38:36 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-02 02:38:36 +0530 |
commit | a9f5f5d6eb99ff48b718cfeed1e98f9f343318ef (patch) | |
tree | 7caaf4c0a21de29f8efe5237781d0f07a679adef /yt_dlp/extractor | |
parent | f5225737877a78f63b9a6f1de675c95c650f65d6 (diff) | |
download | hypervideo-pre-a9f5f5d6eb99ff48b718cfeed1e98f9f343318ef.tar.lz hypervideo-pre-a9f5f5d6eb99ff48b718cfeed1e98f9f343318ef.tar.xz hypervideo-pre-a9f5f5d6eb99ff48b718cfeed1e98f9f343318ef.zip |
[RedBullTV] Parse subtitles from manifest (#2200)
Closes #2151
Authored by: Ashish0804
Diffstat (limited to 'yt_dlp/extractor')
-rw-r--r-- | yt_dlp/extractor/redbulltv.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/yt_dlp/extractor/redbulltv.py b/yt_dlp/extractor/redbulltv.py index e7fdcce3e..756a3666b 100644 --- a/yt_dlp/extractor/redbulltv.py +++ b/yt_dlp/extractor/redbulltv.py @@ -81,12 +81,11 @@ class RedBullTVIE(InfoExtractor): title = video['title'].strip() - formats = self._extract_m3u8_formats( + formats, subtitles = self._extract_m3u8_formats_and_subtitles( 'https://dms.redbull.tv/v3/%s/%s/playlist.m3u8' % (video_id, token), video_id, 'mp4', entry_protocol='m3u8_native', m3u8_id='hls') self._sort_formats(formats) - subtitles = {} for resource in video.get('resources', []): if resource.startswith('closed_caption_'): splitted_resource = resource.split('_') |