Skip to content

Commit

Permalink
Add show to ListEntry
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Feb 29, 2024
1 parent da3b508 commit e1662ab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions trakt/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ def movie(self):
title = data.pop("title")
return Movie(title, **data)

@property
def show(self):
return TVShow(**self.data)

def __getattr__(self, name):
"""
Delegate everything missing to sub-item
Expand Down

0 comments on commit e1662ab

Please sign in to comment.