diff options
author | Yen Chi Hsuan <yan12125@gmail.com> | 2016-07-08 19:35:21 +0800 |
---|---|---|
committer | Yen Chi Hsuan <yan12125@gmail.com> | 2016-07-08 19:35:21 +0800 |
commit | ae8cb5328d6e8fffd4dbc9fa8db4656f966d7558 (patch) | |
tree | 16977d9d1f1f8dd8780116b83e719e91cf73eebd | |
parent | 0ab7f4fe2b0006b6eaf81fcbf31c0cde7a1a14d5 (diff) | |
parent | 2e32ac0b9a64f500fded1bd96b4d16965d4c9092 (diff) |
Merge branch 'JakubAdamWieczorek-polskie-radio'
-rw-r--r-- | youtube_dl/extractor/polskieradio.py | 4 |
1 files changed, 4 insertions, 0 deletions
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)<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() |