Add scrobbler_pause,scrobbler_stop methods
@@ -135,12 +135,22 @@ def scrobble(self, media: Union[Movie, TVEpisode], percent: float):
scrobbler = media.scrobble(progress, None, None)
return scrobbler
+ @nocache
+ @rate_limit()
+ def scrobbler_pause(self, scrobbler: Scrobbler):
+ scrobbler.pause()
+
@nocache
@rate_limit()
def scrobbler_update(self, scrobbler: Scrobbler, percent: float):
progress = int(percent)
scrobbler.update(progress)
+ @nocache
+ @rate_limit()
+ def scrobbler_stop(self, scrobbler: Scrobbler):
+ scrobbler.stop()
+
@nocache
@rate_limit(delay=TRAKT_POST_DELAY)
def mark_watched(self, m, time):
