PromyLOPh / pianobar

Console-based pandora.com player
http://6xq.net/pianobar/
Other
1.73k stars 323 forks source link

event_command: add songpause and songresume events #748

Closed simpkins closed 2 months ago

simpkins commented 3 months ago

This adds code to invoke the event_command handler when playback is paused or resumed. This makes it possible to write an event_command handler that reports the current playback status.

PromyLOPh commented 2 months ago

As mentioned elsewhere (this is not the first time this feature has been proposed): These events are not enough to deduce the state of pianobar. They merely exist to support desktop notifications and limited scripting (like scrobbling to last.fm, if that’s still a thing). If you really need headless operation and full control, use pianod.