Pass percent for pause as well
MODIFY
plextraktsync/commands/watch.py
plextraktsync/commands/watch.py
@@ -148,7 +148,7 @@ def scrobble(self, m: Media, percent: float, event: PlaySessionStateNotification
return self.scrobblers[tm].update(percent)
if state == "paused":
- return self.scrobblers[tm].pause()
+ return self.scrobblers[tm].pause(percent)
if state == "stopped":
self.scrobblers[tm].stop(percent)

MODIFY
plextraktsync/trakt_api.py
plextraktsync/trakt_api.py
@@ -43,8 +43,9 @@ def update(self, progress: float):
@nocache
@rate_limit()
@time_limit()
- def pause(self):
- self.logger.debug(f'pause({self.scrobbler.media}): {self.scrobbler.progress}')
+ def pause(self, progress: float):
+ self.logger.debug(f'pause({self.scrobbler.media}): {progress}')
+ self.scrobbler.progress = progress
self.scrobbler.pause()
@nocache

Pass percent for pause as well