mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-06-02 21:24:20 -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,
|
data,
|
||||||
)
|
)
|
||||||
return SeasonTranslation(
|
return SeasonTranslation(
|
||||||
name=data["data"]["name"],
|
name=data["data"].get("name"),
|
||||||
overview=data["data"]["overview"],
|
overview=data["data"].get("overview"),
|
||||||
posters=[
|
posters=[
|
||||||
i["image"]
|
i["image"]
|
||||||
for i in info["data"]["artworks"]
|
for i in info["data"]["artwork"]
|
||||||
if i["type"] == 7
|
if i["type"] == 7
|
||||||
and (i["language"] == lang or i["language"] is None)
|
and (i["language"] == lang or i["language"] is None)
|
||||||
],
|
],
|
||||||
thumbnails=[
|
thumbnails=[
|
||||||
i["image"]
|
i["image"]
|
||||||
for i in info["data"]["artworks"]
|
for i in info["data"]["artwork"]
|
||||||
if i["type"] == 8
|
if i["type"] == 8
|
||||||
and (i["language"] == lang or i["language"] is None)
|
and (i["language"] == lang or i["language"] is None)
|
||||||
],
|
],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user