Explorar el Código

Revert "[rtve] Fix extraction (#10076)"

This reverts commit c39b2ed990105e640456f126321ef3d771884405.

Apparently outside of Spain using 'auth/resources' is required (#10097).
Jaime Marquínez Ferrándiz hace 9 años
padre
commit
bb9f3bfedf
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      youtube_dl/extractor/rtve.py

+ 3 - 1
youtube_dl/extractor/rtve.py

@@ -113,7 +113,9 @@ class RTVEALaCartaIE(InfoExtractor):
         png = self._download_webpage(png_request, video_id, 'Downloading url information')
         png = self._download_webpage(png_request, video_id, 'Downloading url information')
         video_url = _decrypt_url(png)
         video_url = _decrypt_url(png)
         if not video_url.endswith('.f4m'):
         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
         subtitles = None
         if info.get('sbtFile') is not None:
         if info.get('sbtFile') is not None: