Added stop playback option

This commit is contained in:
iAmInAction 2023-11-26 21:44:11 +01:00 committed by GitHub
parent 6195f6faee
commit 392fb838c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 &