. $state
fi
-play_general() {
- mpc-addall > /dev/null
-}
-
save_state() {
echo "State: $1"
echo "PLAYLIST=$1" > $state
play /home/sounds/prompts/$next_list.wav
+ mpc_cmd clear
+
if [ $next_list == 'general' ]
then
- play_general
+ mpc listall | grep -v -f /home/sounds/etc/exclude_songs | mpc add > /dev/null
else
- mpc_cmd clear
mpc_cmd load $next_list
- mpc_cmd shuffle
- mpc_cmd play
fi
+ mpc_cmd shuffle
+ mpc_cmd play
save_state $next_list;
exit