aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorzurfyx <zurfyx@gmail.com>2017-03-25 01:08:47 +0100
committerSergey M․ <dstftw@gmail.com>2017-03-25 17:52:04 +0700
commit048086920bdb92cc5d63847e9e1d2fd645910363 (patch)
tree1d334981575b40a4714a27f85854a93508bac02e /youtube_dl
parent1088d76da6cbc83d64faca5a1a987944af04b0ce (diff)
[atresplayer] Extract HD manifest
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/atresplayer.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/atresplayer.py b/youtube_dl/extractor/atresplayer.py
index 23a536ff2..940c548f4 100644
--- a/youtube_dl/extractor/atresplayer.py
+++ b/youtube_dl/extractor/atresplayer.py
@@ -161,7 +161,8 @@ class AtresPlayerIE(InfoExtractor):
# this videos are protected by DRM, the f4m downloader doesn't support them
continue
else:
- f4m_url = video_url[:-9] + '/manifest.f4m'
+ 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))
self._sort_formats(formats)