Skip to content

Commit

Permalink
Check ignore_clients in can_scrobble
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Mar 6, 2024
1 parent 819adbc commit 5b6bc42
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plextraktsync/watch/WatchStateUpdater.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,10 @@ def on_play(self, event: PlaySessionStateNotification):
self.logger.debug(f"Scrobbled: {scrobbled}")

def can_scrobble(self, event: PlaySessionStateNotification):
if self.ignore_clients:
if event.client_identifier in self.ignore_clients:
return False

if not self.username_filter:
return True

Expand Down

0 comments on commit 5b6bc42

Please sign in to comment.