Update video.py

This commit is contained in:
Michael Shepanski 2017-09-29 12:10:55 -04:00 committed by GitHub
parent e0a213c5e4
commit 67c859d584

View file

@ -44,10 +44,7 @@ class Video(PlexPartialObject):
@property
def isWatched(self):
""" Returns True if this video is watched. """
if not self.viewCount:
return False
else:
return bool(self.viewCount > 0)
return bool(self.viewCount > 0) if self.viewCount else False
@property
def thumbUrl(self):