summary refs log tree commit diff
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2016-07-29 17:14:04 +0200
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2016-07-29 17:14:04 +0200
commitbb9f3bfedf5d11d8f246654a5e67708edc01c30d (patch)
tree41a88175f767d18584de1540315ad11b2760a138
parentdbc0b39b9158be0bdf50d031d1e993078e6cd264 (diff)
downloadyoutube-dl-bb9f3bfedf5d11d8f246654a5e67708edc01c30d.tar.gz
youtube-dl-bb9f3bfedf5d11d8f246654a5e67708edc01c30d.tar.xz
youtube-dl-bb9f3bfedf5d11d8f246654a5e67708edc01c30d.zip
Revert "[rtve] Fix extraction (#10076)"
This reverts commit c39b2ed990105e640456f126321ef3d771884405.

Apparently outside of Spain using 'auth/resources' is required (#10097).
-rw-r--r--youtube_dl/extractor/rtve.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/youtube_dl/extractor/rtve.py b/youtube_dl/extractor/rtve.py
index d33b05f5d..05becc92b 100644
--- a/youtube_dl/extractor/rtve.py
+++ b/youtube_dl/extractor/rtve.py
@@ -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: