From e2d616dd30b8f4b4b159bc7ee80180861f3bb908 Mon Sep 17 00:00:00 2001 From: Jakub Adam Wieczorek Date: Thu, 7 Jul 2016 11:27:31 +0200 Subject: [PATCH] [polskieradio] Add thumbnails. --- youtube_dl/extractor/polskieradio.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/youtube_dl/extractor/polskieradio.py b/youtube_dl/extractor/polskieradio.py index d3bebaea32..9e7eab12ed 100644 --- a/youtube_dl/extractor/polskieradio.py +++ b/youtube_dl/extractor/polskieradio.py @@ -33,6 +33,7 @@ class PolskieRadioIE(InfoExtractor): 'timestamp': 1456594200, 'upload_date': '20160227', 'duration': 2364, + 'thumbnail': 're:^https?://static.prsa.pl/images/.*\.jpg$' }, }], }, { @@ -68,6 +69,8 @@ class PolskieRadioIE(InfoExtractor): r'(?s)]+id="datetime2"[^>]*>(.+?)', webpage, 'timestamp', fatal=False)) + thumbnail_url = self._og_search_thumbnail(webpage) + entries = [] media_urls = set() @@ -87,6 +90,7 @@ class PolskieRadioIE(InfoExtractor): 'duration': int_or_none(media.get('length')), 'vcodec': 'none' if media.get('provider') == 'audio' else None, 'timestamp': timestamp, + 'thumbnail': thumbnail_url }) title = self._og_search_title(webpage).strip()