From: Mark Wooding Date: Mon, 22 Jun 2020 14:52:19 +0000 (+0100) Subject: bin/disorder-notify (watch_and_notify0): Mention when we stop. X-Git-Url: https://git.distorted.org.uk/~mdw/profile/commitdiff_plain/b52be1a04199bc082bb4bcd22ed8f75189454750 bin/disorder-notify (watch_and_notify0): Mention when we stop. It's rather difficult to figure out when we've stopped due to lack of selected tracks when random play is disabled, so, err... I don't bother. I think the server should send a specific message in its log. --- diff --git a/bin/disorder-notify b/bin/disorder-notify index 95ed576..2b0d5e8 100755 --- a/bin/disorder-notify +++ b/bin/disorder-notify @@ -238,6 +238,8 @@ sub watch_and_notify0 ($) { $info{track} = $f[2]; decode_track_name $sk, %info; notify "$TITLE: Scratched by $f[3]", format_now_playing %info; + } elsif ($f[1] eq "completed" && !$st->{play}) { + notify "$TITLE state", "Stopped"; } }