Usage hqdefault thumbnail in related videos

This commit is contained in:
Jesús 2021-09-14 15:58:13 -05:00
parent d116351aed
commit a0c3ca0159
No known key found for this signature in database
GPG Key ID: F6EE7BC59A315766

View File

@ -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
))