瀏覽代碼

[rtve] Fix extraction for some videos

For example http://www.rtve.es/alacarta/videos/documentos-tv/documentos-tv-descredito/3574098/.
Jaime Marquínez Ferrándiz 9 年之前
父節點
當前提交
da0baba5c8
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      youtube_dl/extractor/rtve.py

+ 3 - 3
youtube_dl/extractor/rtve.py

@@ -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: