mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-16 14:27:53 +00:00
[ard] extract f4m formats
This commit is contained in:
parent
54a5be4dba
commit
7f2611cb5b
@ -338,12 +338,9 @@ class ARDBetaMediathekIE(InfoExtractor):
|
|||||||
format_url = widget['_stream']['json'][0]
|
format_url = widget['_stream']['json'][0]
|
||||||
|
|
||||||
if format_url.endswith('.f4m'):
|
if format_url.endswith('.f4m'):
|
||||||
# Skip f4m - these URLs just return a 403
|
formats.extend(self._extract_f4m_formats(
|
||||||
formats.append({
|
format_url + '?hdcore=3.11.0',
|
||||||
'format_id': 'f4m-' + widget['_quality'],
|
video_id, f4m_id='hds', fatal=False))
|
||||||
'url': format_url,
|
|
||||||
'preference': -1001,
|
|
||||||
})
|
|
||||||
elif format_url.endswith('m3u8'):
|
elif format_url.endswith('m3u8'):
|
||||||
formats.extend(self._extract_m3u8_formats(
|
formats.extend(self._extract_m3u8_formats(
|
||||||
format_url, video_id, 'mp4', m3u8_id='hls', fatal=False))
|
format_url, video_id, 'mp4', m3u8_id='hls', fatal=False))
|
||||||
|
Loading…
Reference in New Issue
Block a user