aboutsummaryrefslogtreecommitdiffhomepage
path: root/youtube_dl/extractor/atresplayer.py
diff options
context:
space:
mode:
authorSergey M․ <[email protected]>2017-03-25 18:03:46 +0700
committerSergey M․ <[email protected]>2017-03-25 18:03:46 +0700
commitc7301e677bddb5d676ebf207a3ac485fce330057 (patch)
tree56a97dfc6e7b11c866d635fdaa7566cceb1c1367 /youtube_dl/extractor/atresplayer.py
parent048086920bdb92cc5d63847e9e1d2fd645910363 (diff)
downloadyoutube-dl-c7301e677bddb5d676ebf207a3ac485fce330057.tar.gz
youtube-dl-c7301e677bddb5d676ebf207a3ac485fce330057.zip
[atresplayer] Extract DASH and ISM formats
Diffstat (limited to 'youtube_dl/extractor/atresplayer.py')
-rw-r--r--youtube_dl/extractor/atresplayer.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/youtube_dl/extractor/atresplayer.py b/youtube_dl/extractor/atresplayer.py
index 940c548f4..ffac9df0e 100644
--- a/youtube_dl/extractor/atresplayer.py
+++ b/youtube_dl/extractor/atresplayer.py
@@ -160,10 +160,15 @@ class AtresPlayerIE(InfoExtractor):
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
continue
- else:
- video_url_hd = video_url.replace('free_es', 'es')
- f4m_url = video_url_hd[:-9] + '/manifest.f4m'
- formats.extend(self._extract_f4m_formats(f4m_url, video_id, f4m_id='hds', fatal=False))
+ video_url_hd = video_url.replace('free_es', 'es')
+ formats.extend(self._extract_f4m_formats(
+ video_url_hd[:-9] + '/manifest.f4m', video_id, f4m_id='hds',
+ 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)
path_data = player.get('pathData')