diff options
author | Jesus E <heckyel@riseup.net> | 2023-06-18 19:46:21 -0400 |
---|---|---|
committer | Jesus E <heckyel@riseup.net> | 2023-06-18 19:47:15 -0400 |
commit | 8908dc138f53f83cf60fe798c9be2242bf20f000 (patch) | |
tree | 96a91cd70f5bf363dbff7f2586e4cd1e7f15555e | |
parent | cd7624f2cb94ba3c8776b769f294b8a9ad8d7487 (diff) | |
download | yt-local-8908dc138f53f83cf60fe798c9be2242bf20f000.tar.lz yt-local-8908dc138f53f83cf60fe798c9be2242bf20f000.tar.xz yt-local-8908dc138f53f83cf60fe798c9be2242bf20f000.zip |
Set related videos thumbnail to HQ
-rw-r--r-- | youtube/watch.py | 1 |
1 files changed, 1 insertions, 0 deletions
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']: |