Bläddra i källkod

[rtve] Fix extraction (#10076)

For http://www.rtve.es/alacarta/videos/documentos-tv/documentos-tv-revolucion-del-movil/3069778/ using 'auth/resources' fails, and other URLs seem to work fine.
Jaime Marquínez Ferrándiz 9 år sedan
förälder
incheckning
c39b2ed990
1 ändrade filer med 1 tillägg och 3 borttagningar
  1. 1 3
      youtube_dl/extractor/rtve.py

+ 1 - 3
youtube_dl/extractor/rtve.py

@@ -113,9 +113,7 @@ class RTVEALaCartaIE(InfoExtractor):
         png = self._download_webpage(png_request, video_id, 'Downloading url information')
         png = self._download_webpage(png_request, video_id, 'Downloading url information')
         video_url = _decrypt_url(png)
         video_url = _decrypt_url(png)
         if not video_url.endswith('.f4m'):
         if not video_url.endswith('.f4m'):
-            video_url = video_url.replace(
-                'resources/', 'auth/resources/'
-            ).replace('.net.rtve', '.multimedia.cdn.rtve')
+            video_url = video_url.replace('.net.rtve', '.multimedia.cdn.rtve')
 
 
         subtitles = None
         subtitles = None
         if info.get('sbtFile') is not None:
         if info.get('sbtFile') is not None: