Add __hash__ so we can use sets to remove dupes etc.

This commit is contained in:
Hellowlol 2017-10-05 23:21:14 +02:00
parent a39326fab8
commit ef0556f952

View file

@ -269,6 +269,9 @@ class PlexPartialObject(PlexObject):
def __eq__(self, other):
return other is not None and self.key == other.key
def __hash__(self):
return hash(repr(self))
def __getattribute__(self, attr):
# Dragons inside.. :-/
value = utils.getattributeOrNone(PlexPartialObject, self, attr)