fuck this fuck that
This commit is contained in:
parent
bb26146985
commit
cddaed6e5c
1 changed files with 1 additions and 7 deletions
8
radio.sh
8
radio.sh
|
@ -22,17 +22,11 @@ mpc random on
|
|||
mpc repeat on
|
||||
mpc crossfade 10
|
||||
|
||||
is_playing=$(mpc | grep -c "")
|
||||
|
||||
while :
|
||||
do
|
||||
if read line < $pipe;
|
||||
then
|
||||
radio_play $line
|
||||
if [[ $is_playing -eq 1 ]]
|
||||
then
|
||||
mpc play
|
||||
is_playing=0
|
||||
fi
|
||||
mpc play
|
||||
fi
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue