Fix season get errors (and use artwork instead of artworkS because tvdb)

This commit is contained in:
Zoe Roux 2024-05-14 03:22:43 +02:00
parent 13e7d87134
commit 47f364840b
No known key found for this signature in database

View File

@ -383,17 +383,17 @@ class TVDB(Provider):
data,
)
return SeasonTranslation(
name=data["data"]["name"],
overview=data["data"]["overview"],
name=data["data"].get("name"),
overview=data["data"].get("overview"),
posters=[
i["image"]
for i in info["data"]["artworks"]
for i in info["data"]["artwork"]
if i["type"] == 7
and (i["language"] == lang or i["language"] is None)
],
thumbnails=[
i["image"]
for i in info["data"]["artworks"]
for i in info["data"]["artwork"]
if i["type"] == 8
and (i["language"] == lang or i["language"] is None)
],