mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-10 06:04:15 +00:00
Merge pull request #35 from charrea6/master
Fix missing check for None in __eq__
This commit is contained in:
commit
f8c092393c
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ class Video(PlexPartialObject):
|
|||
TYPE = None
|
||||
|
||||
def __eq__(self, other):
|
||||
return self.type == other.type and self.key == other.key
|
||||
return other is not None and self.type == other.type and self.key == other.key
|
||||
|
||||
def __repr__(self):
|
||||
title = self.title.replace(' ','.')[0:20]
|
||||
|
|
Loading…
Reference in a new issue