1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-25 11:41:52 +00:00

[extractor/common] Improve thumbnail extraction from JSON-LD

This commit is contained in:
Sergey M․ 2016-11-12 23:01:05 +07:00
parent 8b1aeadc33
commit f076d7972c
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -886,7 +886,7 @@ class InfoExtractor(object):
'url': e.get('contentUrl'), 'url': e.get('contentUrl'),
'title': unescapeHTML(e.get('name')), 'title': unescapeHTML(e.get('name')),
'description': unescapeHTML(e.get('description')), 'description': unescapeHTML(e.get('description')),
'thumbnail': e.get('thumbnailUrl'), 'thumbnail': e.get('thumbnailUrl') or e.get('thumbnailURL'),
'duration': parse_duration(e.get('duration')), 'duration': parse_duration(e.get('duration')),
'timestamp': unified_timestamp(e.get('uploadDate')), 'timestamp': unified_timestamp(e.get('uploadDate')),
'filesize': float_or_none(e.get('contentSize')), 'filesize': float_or_none(e.get('contentSize')),