From d721a28ba42abc791cc18144badfff4aebfdef44 Mon Sep 17 00:00:00 2001 From: Thibault Le Cornec Date: Sat, 2 Mar 2024 16:48:17 +0100 Subject: [PATCH] Update Trakt dependency from trakt==3.4.0 to pytrakt~=3.4.30 (#43) * Update Trakt dependency from trakt==3.4.0 to pytrakt~=3.4.30 Resolve issue #42 * Fix retrieve of the season number --- requirements.txt | 4 ++-- searcher.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/requirements.txt b/requirements.txt index 8fb375c..8a711ce 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ -trakt==3.4.0 -tinydb==4.6.1 +pytrakt~=3.4.30 +tinydb==4.6.1 \ No newline at end of file diff --git a/searcher.py b/searcher.py index c46b1ba..5bf3c7e 100644 --- a/searcher.py +++ b/searcher.py @@ -120,7 +120,7 @@ class TVTimeTVShow(TVTimeItem): season_number = int(self.season_number) # Gen get the Season Number from the first item in the array - first_season_no = trakt_show.seasons[0].number + first_season_no = trakt_show.seasons[0].season # If the season number is 0, then the Trakt show contains a "special" season if first_season_no == 0: