From 1b0746bab5aa73fbfcbc055fcae290b266749302 Mon Sep 17 00:00:00 2001 From: Sacha Arnoud Date: Sat, 25 Sep 2021 22:36:22 +0000 Subject: [PATCH] Bug fix when _extract_m3u8_formats returns False --- youtube_dl/extractor/francetv.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/youtube_dl/extractor/francetv.py b/youtube_dl/extractor/francetv.py index 003a3a0dc..f4ba97d54 100644 --- a/youtube_dl/extractor/francetv.py +++ b/youtube_dl/extractor/francetv.py @@ -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']: