X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=youtube_dl%2Fextractor%2Fpolskieradio.py;h=f559b899f44d216d0f59a5e282de0658cbf4af48;hb=9ba1e1dcc0dc27d36f3f396cb608cef7cd50e48a;hp=d3bebaea32fad6c57dc3ba56501ef92496a0e965;hpb=ce96ed05f42d42f8a506a2a527c776054c44ad1e;p=youtube-dl diff --git a/youtube_dl/extractor/polskieradio.py b/youtube_dl/extractor/polskieradio.py index d3bebaea3..f559b899f 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()