aboutsummaryrefslogtreecommitdiffhomepage
path: root/youtube_dl/extractor/rtve.py
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <[email protected]>2016-07-29 17:20:27 +0200
committerJaime Marquínez Ferrándiz <[email protected]>2016-07-29 17:20:27 +0200
commitda0baba5c8a0ac6220cc0155044a01b97bc00a76 (patch)
treeb29ab7301d5a6a344a9a251d3d50801a5b654c96 /youtube_dl/extractor/rtve.py
parentbb9f3bfedf5d11d8f246654a5e67708edc01c30d (diff)
downloadyoutube-dl-da0baba5c8a0ac6220cc0155044a01b97bc00a76.tar.gz
youtube-dl-da0baba5c8a0ac6220cc0155044a01b97bc00a76.zip
[rtve] Fix extraction for some videos
For example http://www.rtve.es/alacarta/videos/documentos-tv/documentos-tv-descredito/3574098/.
Diffstat (limited to 'youtube_dl/extractor/rtve.py')
-rw-r--r--youtube_dl/extractor/rtve.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/youtube_dl/extractor/rtve.py b/youtube_dl/extractor/rtve.py
index 05becc92b..34f9c4a99 100644
--- a/youtube_dl/extractor/rtve.py
+++ b/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: