mirror of
https://github.com/iAmInActions/random-scripts.git
synced 2024-11-21 11:30:10 +00:00
Added stop playback option
This commit is contained in:
parent
6195f6faee
commit
392fb838c8
4
radio.sh
4
radio.sh
@ -14,6 +14,7 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
channel=$(dialog --backtitle "$prdisp" --menu "Choose a station:" 18 45 25 \
|
channel=$(dialog --backtitle "$prdisp" --menu "Choose a station:" 18 45 25 \
|
||||||
|
0 "Stop playback" \
|
||||||
1 "80s80s" \
|
1 "80s80s" \
|
||||||
2 "80s80s In the mix" \
|
2 "80s80s In the mix" \
|
||||||
3 "100,5" \
|
3 "100,5" \
|
||||||
@ -32,6 +33,9 @@ clear
|
|||||||
kill $PLAYERID
|
kill $PLAYERID
|
||||||
|
|
||||||
case $channel in
|
case $channel in
|
||||||
|
0)
|
||||||
|
prchan=
|
||||||
|
;;
|
||||||
1)
|
1)
|
||||||
prchan="80s80s"
|
prchan="80s80s"
|
||||||
"$PLAYER" "https://streams.80s80s.de/web/mp3-192/" $PLAYERARGS &
|
"$PLAYER" "https://streams.80s80s.de/web/mp3-192/" $PLAYERARGS &
|
||||||
|
Loading…
Reference in New Issue
Block a user