A feature-rich command-line audio/video downloader
[rte] Improve thumbnail extraction (Closes #9085)
Sergey M․e42f413716de
diff --git a/youtube_dl/extractor/rte.py b/youtube_dl/extractor/rte.pyindex 9c89974e7b..ebe563ebb8 100644--- a/youtube_dl/extractor/rte.py+++ b/youtube_dl/extractor/rte.py@@ -39,9 +39,14 @@ class RteIE(InfoExtractor):duration = float_or_none(self._html_search_meta('duration', webpage, 'duration', fatal=False), 1000)- thumbnail_id = self._search_regex(- r'<meta name="thumbnail" content="uri:irus:(.*?)" />', webpage, 'thumbnail')- thumbnail = 'http://img.rasset.ie/' + thumbnail_id + '.jpg'+ thumbnail = None+ thumbnail_meta = self._html_search_meta('thumbnail', webpage)+ if thumbnail_meta:+ thumbnail_id = self._search_regex(+ r'uri:irus:(.+)', thumbnail_meta,+ 'thumbnail id', fatal=False)+ if thumbnail_id:+ thumbnail = 'http://img.rasset.ie/%s.jpg' % thumbnail_idfeeds_url = self._html_search_meta('feeds-prefix', webpage, 'feeds url') + video_idjson_string = self._download_json(feeds_url, video_id)