projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b1aead
)
[extractor/common] Improve thumbnail extraction from JSON-LD
author
Sergey M․
<dstftw@gmail.com>
Sat, 12 Nov 2016 16:01:05 +0000
(23:01 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Sat, 12 Nov 2016 16:01:05 +0000
(23:01 +0700)
youtube_dl/extractor/common.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/common.py
b/youtube_dl/extractor/common.py
index 5f4c984a9db08612c6bc240bd543a77e739cfcfd..bc5d6a4c3d1f84ef54728af4029131caeb00d6be 100644
(file)
--- a/
youtube_dl/extractor/common.py
+++ b/
youtube_dl/extractor/common.py
@@
-886,7
+886,7
@@
class InfoExtractor(object):
'url': e.get('contentUrl'),
'title': unescapeHTML(e.get('name')),
'description': unescapeHTML(e.get('description')),
- 'thumbnail': e.get('thumbnailUrl'),
+ 'thumbnail': e.get('thumbnailUrl')
or e.get('thumbnailURL')
,
'duration': parse_duration(e.get('duration')),
'timestamp': unified_timestamp(e.get('uploadDate')),
'filesize': float_or_none(e.get('contentSize')),