From: Tucker Johnson Date: Sat, 31 May 2025 11:42:04 +0000 (-0400) Subject: stream links X-Git-Url: https://git.newer.systems/?a=commitdiff_plain;h=a6800e5b6aa8317369454fa4d64cb240b9d0867f;p=dmenu.git stream links --- diff --git a/dmenu-scripts/dm-streamselect b/dmenu-scripts/dm-streamselect index dd0e4b2..ee78286 100755 --- a/dmenu-scripts/dm-streamselect +++ b/dmenu-scripts/dm-streamselect @@ -1,12 +1,10 @@ #!/bin/sh streamList=" -audio: WXXI Classical (Rochester Classical Radio) link:https://22213.live.streamtheworld.com/WXXIFM.mp3 -audio: Fox Sports 1280 link:https://worldradiomap.com/us-ny/play/whtk_live +WXXI Classical (Rochester Classical Radio) link:https://22213.live.streamtheworld.com/WXXIFM.mp3 +Classical WSMR (Tampa Classical Radio) https://worldradiomap.com/us-fl/play/wsmr_live " + selected=$(echo "$streamList" | grep -P "^$(echo "$streamList" | grep "https:" | sed 's/link:.*//g' | dmenu -i -p "Select a Stream" -l 20 | awk '{print $1}')\s") -case "$(echo "$selected" | cut -c 1-5 )" in - video) echo "$selected" | sed 's/.*link://' | xargs -r mpv ;; - audio) echo "$selected" | sed 's/.*link://' | xargs -r mpv --no-video --terminal=no ;; -esac +echo "$selected" | sed 's/.*link://' | xargs -r mpv --no-video --terminal=no