2010/7/30 Madhurya Kakati <[email protected]>
>
> Is there any good native linux app for streaming online radio? I
> prefer shoutcast.
> Thanks
>
I wrote a simple script for myself use.Need a script here named
"radioplay.sh" and a txt file of radio lists named
"radio_list.txt" in script.
****Script "radioplay.sh" start*****
#!/bin/sh
listdir=/path/to/listfilename
listfilename=radio_list.txt
INTERFACE() {
echo "Start"
while :
do
cat $listdir/$listfilename
echo "Please enter the one you want(0:quit): "
read choice
if [ "$choice" == "0" ]; then
exit 0
else
line=`cat $listdir/$listfilename | grep ^$choice`
if [ "$line" != "" ]; then
url=`echo $line | cut -d " " -f 3`
mplayer $url
else
echo $line
echo "Your choice doesn't exist"
fi
fi
done
}
INTERFACE
****Script "radioplay.sh" end*****
****radio_list.txt format: "item radioname radio_url",below is an
example****
10 cri mms://enmms.chinabroadcast.cn/am846
****
I also like listening to the radios,if your radio list is not too long,I
think it will help.