1
0
mirror of https://github.com/l1ving/youtube-dl synced 2024-11-20 19:42:59 +08:00

[rtve] Fix extraction for some videos

For example http://www.rtve.es/alacarta/videos/documentos-tv/documentos-tv-descredito/3574098/.
This commit is contained in:
Jaime Marquínez Ferrándiz 2016-07-29 17:20:27 +02:00
parent bb9f3bfedf
commit da0baba5c8

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