Skip to content

A feature-rich command-line audio/video downloader

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

Sergey M․f076d7972c80
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py
index 5f4c984a9d..bc5d6a4c3d 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')),