From 9f5715f54aef150e9dba238b56c1931ba882c3fa Mon Sep 17 00:00:00 2001 From: Sergey M Date: Sun, 1 Oct 2017 03:18:29 +0700 Subject: [PATCH] Update rtve.py --- youtube_dl/extractor/rtve.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/youtube_dl/extractor/rtve.py b/youtube_dl/extractor/rtve.py index a860ee0c2..5746ee18f 100644 --- a/youtube_dl/extractor/rtve.py +++ b/youtube_dl/extractor/rtve.py @@ -120,6 +120,7 @@ class RTVEALaCartaIE(InfoExtractor): video_id)['page']['items'][0] if info['state'] == 'DESPU': raise ExtractorError('The video is no longer available', expected=True) + title = info['title'] png_url = 'http://www.rtve.es/ztnr/movil/thumbnail/%s/videos/%s.png' % (self._manager, video_id) png_request = sanitized_Request(png_url) png_request.add_header('Referer', url) @@ -151,7 +152,7 @@ class RTVEALaCartaIE(InfoExtractor): return { 'id': video_id, - 'title': info['title'], + 'title': title, 'formats': formats, 'thumbnail': info.get('image'), 'page_url': url,