summary refs log tree commit diff
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2016-07-08 19:33:28 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2016-07-08 19:33:28 +0800
commit672f01c37083dfc112f5baed2e76786693c1950d (patch)
treed4d233dcf4c60f5388efdcfbcfb2bd2e6f9d2ee8
parent0ab7f4fe2b0006b6eaf81fcbf31c0cde7a1a14d5 (diff)
parente2d616dd30b8f4b4b159bc7ee80180861f3bb908 (diff)
downloadyoutube-dl-672f01c37083dfc112f5baed2e76786693c1950d.tar.gz
youtube-dl-672f01c37083dfc112f5baed2e76786693c1950d.tar.xz
youtube-dl-672f01c37083dfc112f5baed2e76786693c1950d.zip
Merge branch 'polskie-radio' of https://github.com/JakubAdamWieczorek/youtube-dl into JakubAdamWieczorek-polskie-radio
-rw-r--r--youtube_dl/extractor/polskieradio.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/youtube_dl/extractor/polskieradio.py b/youtube_dl/extractor/polskieradio.py
index d3bebaea3..9e7eab12e 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)<span[^>]+id="datetime2"[^>]*>(.+?)</span>',
             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()