mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Fix season get errors (and use artwork instead of artworkS because tvdb)
This commit is contained in:
parent
13e7d87134
commit
47f364840b
@ -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)
|
||||
],
|
||||
|
Loading…
x
Reference in New Issue
Block a user