Add scrobble method
MODIFY
plex_trakt_sync/trakt_api.py
plex_trakt_sync/trakt_api.py
@@ -127,6 +127,13 @@ def rating(self, m):
def rate(self, m, rating):
m.rate(rating)
+ @nocache
+ @rate_limit()
+ def scrobble(self, media: Union[Movie, TVEpisode], percent: float):
+ progress = int(percent)
+ scrobbler = media.scrobble(progress, None, None)
+ return scrobbler
+
@nocache
@rate_limit(delay=TRAKT_POST_DELAY)
def mark_watched(self, m, time):

Add scrobble method