code: def updateTimeline(self, time, state='stopped', duration=None):
          
          durationStr = '&duration='
          if duration is not None:
              durationStr = durationStr + str(duration)
          else:
              durationStr = durationStr + str(self.duration)
          key = '/:/timeline?ratingKey=%s&key=%s&identifier=com.plexapp.plugins.library&time=%d&state=%s%s'
          key %= (self.ratingKey, self.key, time, state, durationStr)
          self._server.query(key)
          self.reload()
docs: Set the timeline progress for this video.
  
              Parameters:
                  time (int): milliseconds watched
                  state (string): state of the video, default 'stopped'
                  duration (int): duration of the item