1
1
mirror of https://github.com/ytdl-org/youtube-dl synced 2024-11-24 02:46:54 +01:00

Merge branch 'JakubAdamWieczorek-polskie-radio'

This commit is contained in:
Yen Chi Hsuan 2016-07-08 19:35:21 +08:00
commit ae8cb5328d
No known key found for this signature in database
GPG Key ID: 3FDDD575826C5C30

View File

@ -33,6 +33,7 @@ class PolskieRadioIE(InfoExtractor):
'timestamp': 1456594200, 'timestamp': 1456594200,
'upload_date': '20160227', 'upload_date': '20160227',
'duration': 2364, 'duration': 2364,
'thumbnail': 're:^https?://static\.prsa\.pl/images/.*\.jpg$'
}, },
}], }],
}, { }, {
@ -68,6 +69,8 @@ class PolskieRadioIE(InfoExtractor):
r'(?s)<span[^>]+id="datetime2"[^>]*>(.+?)</span>', r'(?s)<span[^>]+id="datetime2"[^>]*>(.+?)</span>',
webpage, 'timestamp', fatal=False)) webpage, 'timestamp', fatal=False))
thumbnail_url = self._og_search_thumbnail(webpage)
entries = [] entries = []
media_urls = set() media_urls = set()
@ -87,6 +90,7 @@ class PolskieRadioIE(InfoExtractor):
'duration': int_or_none(media.get('length')), 'duration': int_or_none(media.get('length')),
'vcodec': 'none' if media.get('provider') == 'audio' else None, 'vcodec': 'none' if media.get('provider') == 'audio' else None,
'timestamp': timestamp, 'timestamp': timestamp,
'thumbnail': thumbnail_url
}) })
title = self._og_search_title(webpage).strip() title = self._og_search_title(webpage).strip()