Skip to content

Commit

Permalink
Update season builder not to trigger fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Mar 8, 2024
1 parent 9aa9e69 commit b560cd5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions trakt/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,11 @@ def show(self):

@property
def season(self):
show = self.data["show"]
season = self.data["number"]
data = self.data.copy()
show = data.pop("show")
season = data.pop("number")
ids = show["ids"]
return TVSeason(show=show["title"], season=season, slug=ids["slug"])
return TVSeason(show=show["title"], season=season, slug=ids["slug"], **data)

@property
def episode(self):
Expand Down

0 comments on commit b560cd5

Please sign in to comment.