aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/yt_data_extract
diff options
context:
space:
mode:
Diffstat (limited to 'youtube/yt_data_extract')
-rw-r--r--youtube/yt_data_extract/common.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/youtube/yt_data_extract/common.py b/youtube/yt_data_extract/common.py
index f97597c..6067662 100644
--- a/youtube/yt_data_extract/common.py
+++ b/youtube/yt_data_extract/common.py
@@ -275,8 +275,9 @@ def extract_item_info(item, additional_info={}):
['descriptionText'], ['descriptionSnippet'],
['detailedMetadataSnippets', 0, 'snippetText'],
))
- info['thumbnail'] = normalize_url(multi_deep_get(item,
- ['thumbnail', 'thumbnails', 0, 'url'], # videos
+ info['thumbnail'] = normalize_url(multi_deep_get(
+ item,
+ ['thumbnail', 'thumbnails', 2, 'url'], # videos
['thumbnails', 0, 'thumbnails', 0, 'url'], # playlists
['thumbnailRenderer', 'showCustomThumbnailRenderer', 'thumbnail', 'thumbnails', 0, 'url'], # shows
))