mirror of
https://github.com/ytdl-org/youtube-dl
synced 2024-11-30 08:13:10 +01:00
[RoosterTeeth] Handle missing media URL at higher level
This commit is contained in:
parent
1ed79ce6a1
commit
a1ef0a66f3
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user