aboutsummaryrefslogtreecommitdiffstats
path: root/youtube
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2021-09-14 16:35:04 -0500
committerJesús <heckyel@hyperbola.info>2021-09-14 16:35:04 -0500
commitf3469b1ff4219065263f3af0ffa384895a720e30 (patch)
treedf9bb15ba86ac08420b196effd109b90bc6fa451 /youtube
parentc5dce849f1a4722d4f84eef3b55b506bced1419b (diff)
downloadyt-local-f3469b1ff4219065263f3af0ffa384895a720e30.tar.lz
yt-local-f3469b1ff4219065263f3af0ffa384895a720e30.tar.xz
yt-local-f3469b1ff4219065263f3af0ffa384895a720e30.zip
Revert "Usage hqdefault thumbnail in related videos"
This reverts commit a0c3ca0159136d17eefa129176ae1904110238b8.
Diffstat (limited to 'youtube')
-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
))