Fill progress before pause/stop to be accurate.
MODIFY
plextraktsync/trakt_api.py
plextraktsync/trakt_api.py
@@ -54,9 +54,11 @@ def pause(self, progress: float):
def stop(self, progress: float):
if progress >= self.threshold:
self.logger.debug(f'stop({self.scrobbler.media}): {progress}')
+ self.scrobbler.progress = progress
self.scrobbler.stop()
else:
self.logger.debug(f'pause({self.scrobbler.media}): {progress}')
+ self.scrobbler.progress = progress
self.scrobbler.pause()

Fill progress before pause/stop to be accurate. #776