aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAstound <kirito@disroot.org>2024-01-28 13:21:54 +0800
committerAstound <kirito@disroot.org>2024-01-28 13:21:54 +0800
commitd2c883c21142e952acab0cd8dea010814e0cb648 (patch)
tree38bd6e393ac43a4e7da17ac0d1bd88c15d8a3acf
parent59c988f8197af8edca26e2665f4c90ec6326a62f (diff)
downloadyt-local-d2c883c21142e952acab0cd8dea010814e0cb648.tar.lz
yt-local-d2c883c21142e952acab0cd8dea010814e0cb648.tar.xz
yt-local-d2c883c21142e952acab0cd8dea010814e0cb648.zip
fix thumbnail into channel
-rw-r--r--youtube/channel.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/youtube/channel.py b/youtube/channel.py
index e177c38..cd0d539 100644
--- a/youtube/channel.py
+++ b/youtube/channel.py
@@ -389,6 +389,7 @@ def post_process_channel_info(info):
info['avatar'] = util.prefix_url(info['avatar'])
info['channel_url'] = util.prefix_url(info['channel_url'])
for item in info['items']:
+ item['thumbnail'] = "https://i.ytimg.com/vi/{}/hqdefault.jpg".format(item['id'])
util.prefix_urls(item)
util.add_extra_html_info(item)
if info['current_tab'] == 'about':