]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[rtve] Fix extraction for some videos
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Fri, 29 Jul 2016 15:20:27 +0000 (17:20 +0200)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Fri, 29 Jul 2016 15:20:27 +0000 (17:20 +0200)
For example http://www.rtve.es/alacarta/videos/documentos-tv/documentos-tv-descredito/3574098/.

youtube_dl/extractor/rtve.py

index 05becc92b43fb1bf2d226954603a856183ea0d87..34f9c4a991263572d935a2bfc79194f8594ecb78 100644 (file)
@@ -113,9 +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(
-                'resources/', 'auth/resources/'
-            ).replace('.net.rtve', '.multimedia.cdn.rtve')
+            if '?' not in video_url:
+                video_url = video_url.replace('resources/', 'auth/resources/')
+            video_url = video_url.replace('.net.rtve', '.multimedia.cdn.rtve')
 
         subtitles = None
         if info.get('sbtFile') is not None: