Summary
When a events::invalid_scrobble warning event triggers, send a notification to a Linux desktop user's notification system
Background
Sometimes a scrobble fails. For the most part, this is a silent error and I might miss when something crashed the scrobbler or if I am listening offline. For scripts, I use notify-send, which is provided by the libnotify library.
Details
I'm not sure what a clean implementation of this would look like with libnotify. I use it for these types of things with shell scripts and Python programs, but not sure how it would work for a C project.
The event to watch for is already captured in the logs:
May 30 10:14:02 localhost mpris-scrobbler[5005]: WARNING events::invalid_scrobble
Outcome
Easier to catch scrobbling issues in real-time when they fail for whatever reason
Summary
When a
events::invalid_scrobblewarning event triggers, send a notification to a Linux desktop user's notification systemBackground
Sometimes a scrobble fails. For the most part, this is a silent error and I might miss when something crashed the scrobbler or if I am listening offline. For scripts, I use
notify-send, which is provided by the libnotify library.Details
I'm not sure what a clean implementation of this would look like with
libnotify. I use it for these types of things with shell scripts and Python programs, but not sure how it would work for a C project.The event to watch for is already captured in the logs:
Outcome
Easier to catch scrobbling issues in real-time when they fail for whatever reason