[RoosterTeeth] Handle missing media URL at higher level

This commit is contained in:
wtpckl 2021-02-06 11:31:44 +01:00
parent 1ed79ce6a1
commit a1ef0a66f3
No known key found for this signature in database
GPG Key ID: 7EEB886BD742D45A

View File

@ -104,14 +104,15 @@ class RoosterTeethIE(InfoExtractor):
'%s is only available for FIRST members' % display_id) '%s is only available for FIRST members' % display_id)
raise raise
if m3u8_url is None: if m3u8_url:
raise ExtractorError("Unable to find formats") formats = self._extract_m3u8_formats(
m3u8_url, display_id, 'mp4', 'm3u8_native', m3u8_id='hls')
self._sort_formats(formats)
formats = self._extract_m3u8_formats( subtitles = self._extract_m3u8_subtitles(m3u8_url, display_id)
m3u8_url, display_id, 'mp4', 'm3u8_native', m3u8_id='hls') else:
self._sort_formats(formats) formats = []
subtitles = None
subtitles = self._extract_m3u8_subtitles(m3u8_url, display_id)
episode = self._download_json( episode = self._download_json(
api_episode_url, display_id, api_episode_url, display_id,