Skip to content

Commit

Permalink
Print result of scrobble to debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Feb 2, 2022
1 parent 89634b8 commit 5737faa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plextraktsync/commands/watch.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ def on_play(self, event: PlaySessionStateNotification):
percent = m.plex.watch_progress(event.view_offset)

self.logger.info(f"on_play: {movie}: {percent:.6F}% Watched: {movie.isWatched}, LastViewed: {movie.lastViewedAt}")
self.scrobble(m, percent, event)
scrobbled = self.scrobble(m, percent, event)
self.logger.debug(f"Scrobbled: {scrobbled}")

def can_scrobble(self, event: PlaySessionStateNotification):
if not self.username_filter:
Expand Down

0 comments on commit 5737faa

Please sign in to comment.