Skip to content

Commit b18e186

Browse files
andrey-yantsenHellowlol
authored andcommitted
fix flake8 warnings on travis (#283)
1 parent 54b26fd commit b18e186

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plexapi/base.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -575,12 +575,12 @@ def updateTimeline(self, time, state='stopped', duration=None):
575575
duration (int): duration of the item
576576
"""
577577
durationStr = '&duration='
578-
if duration != None:
578+
if duration is not None:
579579
durationStr = durationStr + str(duration)
580580
else:
581581
durationStr = durationStr + str(self.duration)
582-
key = '/:/timeline?ratingKey=%s&key=%s&identifier=com.plexapp.plugins.library&time=%d&state=%s%s' % (self.ratingKey, self.key,
583-
time, state, durationStr)
582+
key = '/:/timeline?ratingKey=%s&key=%s&identifier=com.plexapp.plugins.library&time=%d&state=%s%s'
583+
key %= (self.ratingKey, self.key, time, state, durationStr)
584584
self._server.query(key)
585585
self.reload()
586586

0 commit comments

Comments
 (0)