chiark
/
gitweb
/
~mdw
/
profile
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73d8ef9
)
bin/disorder-notify (watch_and_notify0): Mention when we stop.
author
Mark Wooding
<mdw@distorted.org.uk>
Mon, 22 Jun 2020 14:52:19 +0000
(15:52 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Tue, 4 Aug 2020 09:49:13 +0000
(10:49 +0100)
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.
bin/disorder-notify
patch
|
blob
|
blame
|
history
diff --git
a/bin/disorder-notify
b/bin/disorder-notify
index 95ed5765bf118f50321402fdf0433001cb663857..2b0d5e80c1466e1f6c6c108e59c2b59896a2d8f2 100755
(executable)
--- 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";
}
}