From 8908dc138f53f83cf60fe798c9be2242bf20f000 Mon Sep 17 00:00:00 2001 From: Jesus E Date: Sun, 18 Jun 2023 19:46:21 -0400 Subject: Set related videos thumbnail to HQ --- youtube/watch.py | 1 + 1 file changed, 1 insertion(+) (limited to 'youtube') diff --git a/youtube/watch.py b/youtube/watch.py index 1db7895..b67d272 100644 --- a/youtube/watch.py +++ b/youtube/watch.py @@ -686,6 +686,7 @@ def get_watch_page(video_id=None): # prefix urls, and other post-processing not handled by yt_data_extract for item in info['related_videos']: + item['thumbnail'] = "https://i.ytimg.com/vi/{}/hqdefault.jpg".format(item['id']) # set HD relateds thumbnail videos util.prefix_urls(item) util.add_extra_html_info(item) for song in info['music_list']: -- cgit v1.2.3