]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[ard] extract f4m formats
authorRemita Amine <remitamine@gmail.com>
Sat, 1 Sep 2018 07:40:38 +0000 (08:40 +0100)
committerRemita Amine <remitamine@gmail.com>
Sat, 1 Sep 2018 07:40:38 +0000 (08:40 +0100)
youtube_dl/extractor/ard.py

index dcb347849a10618d43d6fa14941a95154bda3e76..194a369c06343bf4beefc2e3cb17840005b7bff5 100644 (file)
@@ -338,12 +338,9 @@ class ARDBetaMediathekIE(InfoExtractor):
                 format_url = widget['_stream']['json'][0]
 
                 if format_url.endswith('.f4m'):
-                    # Skip f4m - these URLs just return a 403
-                    formats.append({
-                        'format_id': 'f4m-' + widget['_quality'],
-                        'url': format_url,
-                        'preference': -1001,
-                    })
+                    formats.extend(self._extract_f4m_formats(
+                        format_url + '?hdcore=3.11.0',
+                        video_id, f4m_id='hds', fatal=False))
                 elif format_url.endswith('m3u8'):
                     formats.extend(self._extract_m3u8_formats(
                         format_url, video_id, 'mp4', m3u8_id='hls', fatal=False))