]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
Revert "[rtve] Fix extraction (#10076)"
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Fri, 29 Jul 2016 15:14:04 +0000 (17:14 +0200)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Fri, 29 Jul 2016 15:14:04 +0000 (17:14 +0200)
This reverts commit c39b2ed990105e640456f126321ef3d771884405.

Apparently outside of Spain using 'auth/resources' is required (#10097).

youtube_dl/extractor/rtve.py

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