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