Listen to online radio

#!/bin/sh
#
# Author: Tim Van Wassenhove <timvw@users.sourceforge.net>
# Update: 2004-05-21 02:50:31
#
# This script allows you to listen to Belgian online radio streams.
#

if [ "1" == "" ]; then
echo "
[1]   Radio 1
[2]   Radio 2
[3]   Studio Brussel
[4]   Donna
[5]   4FM
[6]   QMusic
[7]   Topradio
[9]   Klara

Enter your choice: "

read choice
else
choice="1"
fi

case "$choice" in
    1) station="mms://streampower.belgacom.be:1755/radio1high" ;;
    2) station="mms://streampower.belgacom.be:1755/ra2vlbhigh" ;;
    3) station="mms://streampower.belgacom.be:1755/stubruhigh" ;;
    4) station="mms://streampower.belgacom.be:1755/donnahigh" ;;
    5) station="mms://mss.streampower.be/4fmhi" ;;
    6) station="mms://mss.streampower.be/qmusic_ahi" ;;
    7) station="mms://mss.streampower.be/topahi" ;;
    9) station="mms://streampower.belgacom.be:1755/stubruhigh" ;;
    *) echo "Wrong choice!"
    exit
esac

mplayer $station

exit
 

Download the source for radio.txt.

This entry was posted on Friday, May 21st, 2004 at 00:40 and is filed under Bash. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.

Comments are closed.