chiark / gitweb /
bin/disorder-notify: Maybe report currently playing track on state change.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 21 Jul 2018 14:18:07 +0000 (15:18 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 21 Jul 2018 14:57:58 +0000 (15:57 +0100)
commita367c2fe3a46d3e07313d756b7ef5e0bec84fcf3
tree8abf953b076ae73a2b5d51bdb4c73333a499be12
parent30068e6d43270e37b0f5c3620cb1ec43d54d1d61
bin/disorder-notify: Maybe report currently playing track on state change.

This involves fiddling with the `now_playing' function so that it can
find out the current track for itself if necessary.

(Initially I did this on `enable_random' and `enable_play', but that
leads to duplicate now-playing reports because a `playing' notification
will follow unless we never actually stopped playing anything anwyay.
So now we only report on resume.)
bin/disorder-notify