Skip to content

Commit

Permalink
Add now required __hash__ to Media
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Apr 8, 2024
1 parent 83b454f commit 44bca27
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plextraktsync/media/Media.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ def __eq__(self, other):

return False

def __hash__(self):
return hash((self.type, self.plex, self.trakt))

@property
def title(self):
if self.plex:
Expand Down

0 comments on commit 44bca27

Please sign in to comment.