diff options
| author | Franck Cuny <franck@fcuny.net> | 2021-10-11 19:34:59 -0700 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2021-10-11 19:34:59 -0700 |
| commit | ed67fc99451452b7df32f6609f8e9798089e243f (patch) | |
| tree | 4cb922ce7ace4f0610fc2cca98199c5560ff0f04 /cmd/mpd-scrobbler/main.go | |
| parent | scrobbler: record how long a song was played (diff) | |
| download | x-ed67fc99451452b7df32f6609f8e9798089e243f.tar.gz | |
scrobbler: read mpd status before processing song
If the status of the player is "stop", we don't have a new song to
handle. In this case, if there's a current song, let's update the status
and clear our state.
Closes #1.
Diffstat (limited to 'cmd/mpd-scrobbler/main.go')
0 files changed, 0 insertions, 0 deletions
