mirror of
https://github.com/pkkid/python-plexapi
synced 2024-09-20 13:51:57 +00:00
Update video.py
This commit is contained in:
parent
e0a213c5e4
commit
67c859d584
1 changed files with 1 additions and 4 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue