mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-08-22 14:24:03 -07:00
Bug fix when _extract_m3u8_formats returns False
This commit is contained in:
parent
8e8e95a490
commit
1b0746bab5
1 changed files with 4 additions and 1 deletions
|
@ -173,10 +173,13 @@ class FranceTVIE(InfoExtractor):
|
|||
sign(video_url, format_id) + '&hdcore=3.7.0&plugin=aasp-3.7.0.39.44',
|
||||
video_id, f4m_id=format_id, fatal=False))
|
||||
elif ext == 'm3u8':
|
||||
format, subtitle = self._extract_m3u8_formats(
|
||||
res = self._extract_m3u8_formats(
|
||||
sign(video_url, format_id), video_id, 'mp4',
|
||||
entry_protocol='m3u8_native', m3u8_id=format_id,
|
||||
fatal=False, include_subtitles=True)
|
||||
if not res:
|
||||
continue
|
||||
format, subtitle = res
|
||||
info['formats'].extend(format)
|
||||
for lang in subtitle:
|
||||
if lang in info['subtitles']:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue