diff options
author | Jesús <heckyel@hyperbola.info> | 2021-09-14 16:35:04 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2021-09-14 16:35:04 -0500 |
commit | f3469b1ff4219065263f3af0ffa384895a720e30 (patch) | |
tree | df9bb15ba86ac08420b196effd109b90bc6fa451 /youtube | |
parent | c5dce849f1a4722d4f84eef3b55b506bced1419b (diff) | |
download | yt-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.py | 5 |
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 )) |