Преглед изворни кода

[atresplayer] Extract HD manifest

zurfyx пре 8 година
родитељ
комит
048086920b
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      youtube_dl/extractor/atresplayer.py

+ 2 - 1
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)