Skip to content

Commit

Permalink
Avoid poisoning "number" into TVSeason
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Jan 15, 2022
1 parent bb77719 commit 123d7c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion trakt/tv.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,8 @@ def seasons(self):
episodes.append(episode)
season['episodes'] = episodes

season = TVSeason(self.title, season['number'], **season)
number = season.pop('number')
season = TVSeason(self.title, number, **season)
self._seasons.append(season)
yield self._seasons

Expand Down

0 comments on commit 123d7c3

Please sign in to comment.