mirror of
https://git.vectorsigma.ru/public/tubearchivist.git
synced 2026-08-04 21:39:49 +00:00
fix channel tv art extraction
This commit is contained in:
@@ -92,8 +92,9 @@ class YoutubeChannel(YouTubeItem):
|
|||||||
def _get_tv_art(self):
|
def _get_tv_art(self):
|
||||||
"""extract tv artwork"""
|
"""extract tv artwork"""
|
||||||
for i in self.youtube_meta["thumbnails"]:
|
for i in self.youtube_meta["thumbnails"]:
|
||||||
if i.get("id") == "avatar_uncropped":
|
if i.get("id") == "banner_uncropped":
|
||||||
return i["url"]
|
return i["url"]
|
||||||
|
for i in self.youtube_meta["thumbnails"]:
|
||||||
if not i.get("width"):
|
if not i.get("width"):
|
||||||
continue
|
continue
|
||||||
if i["width"] // i["height"] < 2 and not i["width"] == i["height"]:
|
if i["width"] // i["height"] < 2 and not i["width"] == i["height"]:
|
||||||
|
|||||||
Reference in New Issue
Block a user