Skip to content

Commit

Permalink
[rtve] Fix extraction for some videos
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimeMF committed Jul 29, 2016
1 parent bb9f3bf commit da0baba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions youtube_dl/extractor/rtve.py
Expand Up @@ -113,9 +113,9 @@ def _real_extract(self, url):
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:
Expand Down

0 comments on commit da0baba

Please sign in to comment.