1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-18 00:05:46 +00:00

[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)
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,