mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-22 19:53:17 +00:00
Merge pull request #192 from tdorsey/patch-1
Fix TypeError when viewCount is not set
This commit is contained in:
commit
74eae2acdb
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ class Video(PlexPartialObject):
|
|||
@property
|
||||
def isWatched(self):
|
||||
""" Returns True if this video is watched. """
|
||||
return bool(self.viewCount > 0)
|
||||
return bool(self.viewCount > 0) if self.viewCount else False
|
||||
|
||||
@property
|
||||
def thumbUrl(self):
|
||||
|
|
Loading…
Reference in a new issue