Explorar o código

[atresplayer] Extract HD manifest

zurfyx %!s(int64=8) %!d(string=hai) anos
pai
achega
048086920b
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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)