fix channel tv art extraction

This commit is contained in:
Simon 2023-07-28 16:34:39 +07:00
parent f970ec867e
commit 6f915a5733
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4

View File

@ -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"]: