summary refs log tree commit diff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2016-11-12 23:01:05 +0700
committerSergey M․ <dstftw@gmail.com>2016-11-12 23:01:05 +0700
commitf076d7972c80ad7db9909fef0f34f0c579ebee1b (patch)
treeec9ab73c33b72032bcaa8deec9c010438c4140f5
parent8b1aeadc33cdb1eef8079e67d522d8a39676bb53 (diff)
downloadyoutube-dl-f076d7972c80ad7db9909fef0f34f0c579ebee1b.tar.gz
youtube-dl-f076d7972c80ad7db9909fef0f34f0c579ebee1b.tar.xz
youtube-dl-f076d7972c80ad7db9909fef0f34f0c579ebee1b.zip
[extractor/common] Improve thumbnail extraction from JSON-LD
-rw-r--r--youtube_dl/extractor/common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py
index 5f4c984a9..bc5d6a4c3 100644
--- 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')),