From 6f915a57338c71dc2f9db4d3994455c88d7f41e4 Mon Sep 17 00:00:00 2001 From: Simon Date: Fri, 28 Jul 2023 16:34:39 +0700 Subject: [PATCH] fix channel tv art extraction --- tubearchivist/home/src/index/channel.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tubearchivist/home/src/index/channel.py b/tubearchivist/home/src/index/channel.py index 4203c3d..1907062 100644 --- a/tubearchivist/home/src/index/channel.py +++ b/tubearchivist/home/src/index/channel.py @@ -92,8 +92,9 @@ class YoutubeChannel(YouTubeItem): def _get_tv_art(self): """extract tv artwork""" for i in self.youtube_meta["thumbnails"]: - if i.get("id") == "avatar_uncropped": + if i.get("id") == "banner_uncropped": return i["url"] + for i in self.youtube_meta["thumbnails"]: if not i.get("width"): continue if i["width"] // i["height"] < 2 and not i["width"] == i["height"]: