Skip to content

Commit

Permalink
fix season number in show_collection
Browse files Browse the repository at this point in the history
  • Loading branch information
simonc56 committed Jun 13, 2022
1 parent 8a6d4f1 commit 6402630
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trakt/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ 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
Expand Down

0 comments on commit 6402630

Please sign in to comment.