From a1ef0a66f3167aaefbabc3013bbe881911c22796 Mon Sep 17 00:00:00 2001 From: wtpckl Date: Sat, 6 Feb 2021 11:31:44 +0100 Subject: [PATCH] [RoosterTeeth] Handle missing media URL at higher level --- youtube_dl/extractor/roosterteeth.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/youtube_dl/extractor/roosterteeth.py b/youtube_dl/extractor/roosterteeth.py index 5041d592b..e6c20b25f 100644 --- a/youtube_dl/extractor/roosterteeth.py +++ b/youtube_dl/extractor/roosterteeth.py @@ -104,14 +104,15 @@ class RoosterTeethIE(InfoExtractor): '%s is only available for FIRST members' % display_id) raise - if m3u8_url is None: - raise ExtractorError("Unable to find formats") + if m3u8_url: + formats = self._extract_m3u8_formats( + m3u8_url, display_id, 'mp4', 'm3u8_native', m3u8_id='hls') + self._sort_formats(formats) - formats = self._extract_m3u8_formats( - m3u8_url, display_id, 'mp4', 'm3u8_native', m3u8_id='hls') - self._sort_formats(formats) - - subtitles = self._extract_m3u8_subtitles(m3u8_url, display_id) + subtitles = self._extract_m3u8_subtitles(m3u8_url, display_id) + else: + formats = [] + subtitles = None episode = self._download_json( api_episode_url, display_id,