From 80fae411e1042d313e79bb7cc3ae639847d54370 Mon Sep 17 00:00:00 2001 From: twolaw Date: Mon, 13 Jun 2022 23:05:51 +0200 Subject: [PATCH] fix season number in show_collection --- trakt/users.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/trakt/users.py b/trakt/users.py index 523b83d3..ed825ad5 100644 --- a/trakt/users.py +++ b/trakt/users.py @@ -372,7 +372,8 @@ def show_collection(self): s = show.pop('show') extract_ids(s) sh = TVShow(**s) - sh._seasons = [TVSeason(show=sh.title, **sea) + sh._seasons = [TVSeason(show=sh.title, + season=sea['number'], **sea) for sea in show.pop('seasons')] self._show_collection.append(sh) yield self._show_collection