mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-26 21:50:20 +00:00
parent
874281828a
commit
e0a213c5e4
1 changed files with 5 additions and 2 deletions
|
@ -44,8 +44,11 @@ class Video(PlexPartialObject):
|
||||||
@property
|
@property
|
||||||
def isWatched(self):
|
def isWatched(self):
|
||||||
""" Returns True if this video is watched. """
|
""" Returns True if this video is watched. """
|
||||||
return bool(self.viewCount > 0)
|
if not self.viewCount:
|
||||||
|
return False
|
||||||
|
else:
|
||||||
|
return bool(self.viewCount > 0)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def thumbUrl(self):
|
def thumbUrl(self):
|
||||||
""" Return url to for the thumbnail image. """
|
""" Return url to for the thumbnail image. """
|
||||||
|
|
Loading…
Reference in a new issue