mirror of
https://github.com/ytdl-org/youtube-dl
synced 2025-01-31 15:50:10 +09:00
Bug fix when _extract_m3u8_formats returns False
This commit is contained in:
parent
8e8e95a490
commit
1b0746bab5
@ -173,10 +173,13 @@ class FranceTVIE(InfoExtractor):
|
|||||||
sign(video_url, format_id) + '&hdcore=3.7.0&plugin=aasp-3.7.0.39.44',
|
sign(video_url, format_id) + '&hdcore=3.7.0&plugin=aasp-3.7.0.39.44',
|
||||||
video_id, f4m_id=format_id, fatal=False))
|
video_id, f4m_id=format_id, fatal=False))
|
||||||
elif ext == 'm3u8':
|
elif ext == 'm3u8':
|
||||||
format, subtitle = self._extract_m3u8_formats(
|
res = self._extract_m3u8_formats(
|
||||||
sign(video_url, format_id), video_id, 'mp4',
|
sign(video_url, format_id), video_id, 'mp4',
|
||||||
entry_protocol='m3u8_native', m3u8_id=format_id,
|
entry_protocol='m3u8_native', m3u8_id=format_id,
|
||||||
fatal=False, include_subtitles=True)
|
fatal=False, include_subtitles=True)
|
||||||
|
if not res:
|
||||||
|
continue
|
||||||
|
format, subtitle = res
|
||||||
info['formats'].extend(format)
|
info['formats'].extend(format)
|
||||||
for lang in subtitle:
|
for lang in subtitle:
|
||||||
if lang in info['subtitles']:
|
if lang in info['subtitles']:
|
||||||
|
Loading…
Reference in New Issue
Block a user