diff options
author | Remita Amine <remitamine@gmail.com> | 2018-09-01 08:40:38 +0100 |
---|---|---|
committer | Remita Amine <remitamine@gmail.com> | 2018-09-01 08:40:38 +0100 |
commit | 7f2611cb5b086fbdb6281779a96fcb75a594e68c (patch) | |
tree | 19f9d2f97f3c8efa8e33dff28848dd814b093884 | |
parent | 54a5be4dba3560ff51f98865b5598d361a878e82 (diff) | |
download | youtube-dl-7f2611cb5b086fbdb6281779a96fcb75a594e68c.tar.xz |
[ard] extract f4m formats
-rw-r--r-- | youtube_dl/extractor/ard.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/youtube_dl/extractor/ard.py b/youtube_dl/extractor/ard.py index dcb347849..194a369c0 100644 --- a/youtube_dl/extractor/ard.py +++ b/youtube_dl/extractor/ard.py @@ -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)) |