Add scrobbler_update method
MODIFY
plex_trakt_sync/trakt_api.py
plex_trakt_sync/trakt_api.py
from trakt.movies import Movie
from trakt.tv import TVShow, TVSeason, TVEpisode
from trakt.errors import OAuthException, ForbiddenException
+from trakt.sync import Scrobbler
from plex_trakt_sync.logging import logging
from plex_trakt_sync.decorators import memoize, nocache, rate_limit
@@ -134,6 +135,12 @@ def scrobble(self, media: Union[Movie, TVEpisode], percent: float):
scrobbler = media.scrobble(progress, None, None)
return scrobbler
+ @nocache
+ @rate_limit()
+ def scrobbler_update(self, scrobbler: Scrobbler, percent: float):
+ progress = int(percent)
+ scrobbler.update(progress)
+
@nocache
@rate_limit(delay=TRAKT_POST_DELAY)
def mark_watched(self, m, time):

Add scrobbler_update method