Add WOW!Radio to radio setup
This commit is contained in:
parent
d16664fad8
commit
5bba670b04
BIN
.config/radio/wow-radio.png
Normal file
BIN
.config/radio/wow-radio.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 19 KiB |
@ -8,7 +8,8 @@ STATIONS="$(sed 's/: .*//g; s/ /Open FM: /; s/"//g; s/}//g; s/{//g; /^$/d' "$OP
|
||||
newonce.radio
|
||||
RMF FM
|
||||
RMF Maxxx
|
||||
Radio ZET"
|
||||
Radio ZET
|
||||
WOW!Radio"
|
||||
|
||||
station=$(echo "$STATIONS" | rofi -dmenu -i -l 20 -p ' Radio Station')
|
||||
[ ! "$station" ] && exit
|
||||
@ -32,6 +33,10 @@ case "$station" in
|
||||
radio="https://zt02.cdn.eurozet.pl/zet-old.mp3"
|
||||
icon="radio-zet-logo.png"
|
||||
;;
|
||||
"WOW!Radio")
|
||||
radio="https://radio.wownero.com/wow.ogg"
|
||||
icon="wow-radio.png"
|
||||
;;
|
||||
*)
|
||||
id="$(grep "\"$(echo "$station" | sed 's/Open FM: //g')\"" "$OPEN_FM_CHANNELS_LIST" | sed 's/.*: //g; s/"//g; s/,//g')"
|
||||
radio="http://stream.open.fm/$id"
|
||||
|
@ -16,6 +16,9 @@ elif [ "$(mpc status | awk 'NR==2 {print $1}')" = "[playing]" ]; then
|
||||
mpc status -f "%name%: %title%" | awk 'NR==1' | sed 's/ w .*//g; s/& .* -/-/g; s/feat. .* -/-/g; s/ft .* -/-/g; s/; .* -/ -/g; s/ (feat. .*//g; s/feat. .*//g; s/STOP_AD_BREAK//g'
|
||||
elif mpc status -f "%file%" | grep -q "zet-old.mp3"; then
|
||||
mpc status -f "%name%" | awk 'NR==1'
|
||||
elif mpc status -f "%file%" | grep -q "wow.ogg"; then
|
||||
title="$(mpc status -f "%title%" | awk 'NR==1')"
|
||||
printf "%s" "WOW!Radio: $title"
|
||||
fi
|
||||
elif playerctl --player=spotify status | grep -q "Paused"; then
|
||||
echo ""
|
||||
|
Loading…
x
Reference in New Issue
Block a user