Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rilysh/ffe18aa5c1264cedf0429cdfa6561237 to your computer and use it in GitHub Desktop.
Save rilysh/ffe18aa5c1264cedf0429cdfa6561237 to your computer and use it in GitHub Desktop.
radio.sh
#!/bin/sh
if [ ! mpv ]; then
echo -e "\033[0;91mPlease install mpv first in your system"
fi
help() {
echo "A small radio player script"
echo "Stations [1 to 6] (please select randomly)"
}
if [ ! $1 ]; then
help
fi
starting() {
echo -e "\033[0;92mStarting..."
}
case $1 in
"1")
starting
mpv "https://25343.live.streamtheworld.com/SKYRADIO.mp3?dist=radionet"
;;
"2")
starting
mpv "https://stream.radiocorp.nl/web12_mp3.mp3"
;;
"3")
starting
mpv "https://streams.ilovemusic.de/iloveradio14.mp3"
;;
"4")
starting
mpv "https://streams.ilovemusic.de/iloveradio2.mp3"
;;
"5")
starting
mpv "https://streams.ilovemusic.de/iloveradio16.mp3"
;;
"6")
starting
mpv "https://streams.ilovemusic.de/iloveradio14.mp3"
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment