From 5bcc9e8cecbf3a15acefe08224b9efdc10ea0c30 Mon Sep 17 00:00:00 2001 From: Steven Saus Date: Wed, 12 Oct 2022 23:29:03 -0400 Subject: [PATCH] Removing mpdq from the build for right now because of the subshell problem --- mpdq | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/mpdq b/mpdq index 9b430d6..20afdba 100755 --- a/mpdq +++ b/mpdq @@ -374,6 +374,14 @@ function main { do # Moving this here takes away a subshell problem. Killing needs to be # done through relayfile now. + # maybe length of queue read here? + # pauseme=$(mpc --host $MPD_PASS@$MPD_HOST --port $MPD_PORT | tail -1 | ${grep_bin} "repeat: off" | ${grep_bin} "consume: on" | ${grep_bin} -c "random: off") + # if [ "$pauseme" == "1" ];then +# playlist_length=$(mpc --host $MPD_PASS@$MPD_HOST --port $MPD_PORT playlist | wc -l) + + # if [ $playlist_length -lt $PLAYLIST_TRIGGER ];then +# need_next_song + # fi #event=$(mpc --host $MPD_HOST --port $MPD_PORT idle) if [ -f ${RelayName} ];then