Merge pull request #192 from tdorsey/patch-1

Fix TypeError when viewCount is not set
This commit is contained in:
Michael Shepanski 2017-09-29 12:11:30 -04:00 committed by GitHub
commit 74eae2acdb

View file

@ -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):