From c5e097e24e2d37bdbbf53e4ab78bc4591c790e9c Mon Sep 17 00:00:00 2001 From: Wiktor Zykubek Date: Thu, 18 Feb 2021 12:45:30 +0100 Subject: [PATCH] Fix play-radio script --- .local/bin/scripts/play-radio | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/scripts/play-radio b/.local/bin/scripts/play-radio index 4d7f343..b1c8b80 100755 --- a/.local/bin/scripts/play-radio +++ b/.local/bin/scripts/play-radio @@ -19,7 +19,7 @@ case "$station" in "RMF Maxxx") radio="http://195.150.20.4:8000/rmf_maxxx" ;; "Radio ZET") radio="https://zt02.cdn.eurozet.pl/zet-old.mp3" ;; *) - 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" ;; esac