[orf:tvthek] Make manifest requests non fatal (refs #22578)
authorSergey M․ <dstftw@gmail.com>
Wed, 2 Oct 2019 17:55:46 +0000 (00:55 +0700)
committerSergey M․ <dstftw@gmail.com>
Wed, 2 Oct 2019 17:55:46 +0000 (00:55 +0700)
youtube_dl/extractor/orf.py

index 499be0029e739ca1779812a34c812c70a70595b1..3425f76024c04cdb937502361480a81e0b958c16 100644 (file)
@@ -86,12 +86,13 @@ class ORFTVthekIE(InfoExtractor):
                     if value:
                         format_id_list.append(value)
                 format_id = '-'.join(format_id_list)
-                if determine_ext(fd['src']) == 'm3u8':
+                ext = determine_ext(src)
+                if ext == 'm3u8':
                     formats.extend(self._extract_m3u8_formats(
-                        fd['src'], video_id, 'mp4', m3u8_id=format_id))
-                elif determine_ext(fd['src']) == 'f4m':
+                        src, video_id, 'mp4', m3u8_id=format_id, fatal=False))
+                elif ext == 'f4m':
                     formats.extend(self._extract_f4m_formats(
-                        fd['src'], video_id, f4m_id=format_id))
+                        src, video_id, f4m_id=format_id, fatal=False))
                 else:
                     formats.append({
                         'format_id': format_id,