From 47f364840bf1309de18faded566d4bfd9978145f Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Tue, 14 May 2024 03:22:43 +0200 Subject: [PATCH] Fix season get errors (and use artwork instead of artworkS because tvdb) --- scanner/providers/implementations/thetvdb.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scanner/providers/implementations/thetvdb.py b/scanner/providers/implementations/thetvdb.py index b19adca3..a3e85818 100644 --- a/scanner/providers/implementations/thetvdb.py +++ b/scanner/providers/implementations/thetvdb.py @@ -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) ],