A feature-rich command-line audio/video downloader
[RedBullTV] Parse subtitles from manifest (#2200)
Ashish Guptaa9f5f5d6eb99
diff --git a/yt_dlp/extractor/redbulltv.py b/yt_dlp/extractor/redbulltv.pyindex e7fdcce3ed..756a3666b7 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('_')