Skip to content

Commit

Permalink
Ensure player is not ignored when checking for MPRIS events
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusor committed Apr 23, 2022
1 parent 761aa2c commit 1a59a08
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/scrobble.h
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,10 @@ void state_loaded_properties(DBusConnection *conn, struct mpris_player *player,
assert(conn);
assert(player);
assert(properties);
if (player->ignored) {
_trace("events::skipping: player %s is ignored", player->name);
return;
}

if (!mpris_event_happened(what_happened)) {
_trace("events::skipping: nothing happened");
Expand Down

0 comments on commit 1a59a08

Please sign in to comment.