[atresplayer] Extract HD manifest
authorzurfyx <zurfyx@gmail.com>
Sat, 25 Mar 2017 00:08:47 +0000 (01:08 +0100)
committerSergey M․ <dstftw@gmail.com>
Sat, 25 Mar 2017 10:52:04 +0000 (17:52 +0700)
youtube_dl/extractor/atresplayer.py

index 23a536ff22b56f7dba205d86eeafb4be7c083c29..940c548f4d5c186e70c626668bd18aff4f42a923 100644 (file)
@@ -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)