mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-12-22 22:35:21 +00: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)
|
'%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,
|
||||||
|
Loading…
Reference in New Issue
Block a user