Add WOW!Radio to radio setup

This commit is contained in:
Wiktor Zykubek 2021-03-20 14:28:57 +01:00
parent d16664fad8
commit 5bba670b04
3 changed files with 9 additions and 1 deletions

BIN
.config/radio/wow-radio.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

View File

@ -8,7 +8,8 @@ STATIONS="$(sed 's/: .*//g; s/ /Open FM: /; s/"//g; s/}//g; s/{//g; /^$/d' "$OP
newonce.radio newonce.radio
RMF FM RMF FM
RMF Maxxx RMF Maxxx
Radio ZET" Radio ZET
WOW!Radio"
station=$(echo "$STATIONS" | rofi -dmenu -i -l 20 -p ' Radio Station') station=$(echo "$STATIONS" | rofi -dmenu -i -l 20 -p ' Radio Station')
[ ! "$station" ] && exit [ ! "$station" ] && exit
@ -32,6 +33,10 @@ case "$station" in
radio="https://zt02.cdn.eurozet.pl/zet-old.mp3" radio="https://zt02.cdn.eurozet.pl/zet-old.mp3"
icon="radio-zet-logo.png" 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')" 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" radio="http://stream.open.fm/$id"

View File

@ -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' 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 elif mpc status -f "%file%" | grep -q "zet-old.mp3"; then
mpc status -f "%name%" | awk 'NR==1' 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 fi
elif playerctl --player=spotify status | grep -q "Paused"; then elif playerctl --player=spotify status | grep -q "Paused"; then
echo "" echo ""