diff options
author | Jesús <heckyel@hyperbola.info> | 2021-09-14 15:58:13 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2021-09-14 15:58:13 -0500 |
commit | a0c3ca0159136d17eefa129176ae1904110238b8 (patch) | |
tree | a76bdd5c2c4f25928a32150bbe5fbf9fab81156e /youtube/yt_data_extract/common.py | |
parent | d116351aeda249e42e5ade22640232362fe2ed43 (diff) | |
download | yt-local-a0c3ca0159136d17eefa129176ae1904110238b8.tar.lz yt-local-a0c3ca0159136d17eefa129176ae1904110238b8.tar.xz yt-local-a0c3ca0159136d17eefa129176ae1904110238b8.zip |
Usage hqdefault thumbnail in related videos
Diffstat (limited to 'youtube/yt_data_extract/common.py')
-rw-r--r-- | youtube/yt_data_extract/common.py | 5 |
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 )) |