mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-09-08 09:35:01 +00:00
[atresplayer] Extract DASH and ISM formats
This commit is contained in:
parent
048086920b
commit
c7301e677b
|
@ -160,10 +160,15 @@ class AtresPlayerIE(InfoExtractor):
|
||||||
f4m_url = 'http://drg.antena3.com/{0}hds/es/sd.f4m'.format(f4m_path)
|
f4m_url = 'http://drg.antena3.com/{0}hds/es/sd.f4m'.format(f4m_path)
|
||||||
# this videos are protected by DRM, the f4m downloader doesn't support them
|
# this videos are protected by DRM, the f4m downloader doesn't support them
|
||||||
continue
|
continue
|
||||||
else:
|
video_url_hd = video_url.replace('free_es', 'es')
|
||||||
video_url_hd = video_url.replace('free_es', 'es')
|
formats.extend(self._extract_f4m_formats(
|
||||||
f4m_url = video_url_hd[:-9] + '/manifest.f4m'
|
video_url_hd[:-9] + '/manifest.f4m', video_id, f4m_id='hds',
|
||||||
formats.extend(self._extract_f4m_formats(f4m_url, video_id, f4m_id='hds', fatal=False))
|
fatal=False))
|
||||||
|
formats.extend(self._extract_mpd_formats(
|
||||||
|
video_url_hd[:-9] + '/manifest.mpd', video_id, mpd_id='dash',
|
||||||
|
fatal=False))
|
||||||
|
formats.extend(self._extract_ism_formats(
|
||||||
|
video_url_hd, video_id, ism_id='mss', fatal=False))
|
||||||
self._sort_formats(formats)
|
self._sort_formats(formats)
|
||||||
|
|
||||||
path_data = player.get('pathData')
|
path_data = player.get('pathData')
|
||||||
|
|
Loading…
Reference in a new issue