#!/bin/bash
#RoM
RED='\e[1;31m'
NC='\e[0m'
#--------------------------------------------------------------------------------------------------------------------------
echo " Escoje la radio que quieras escuchar en vivo :"
echo -e " 1 -> ${RED}Rack 105${NC}"
echo -e " 2 -> ${RED}Com Radio${NC}"
echo -e " 3 -> ${RED}Catalunya Radio${NC}"
echo -e " 4 -> ${RED}Ona Mallorca${NC}"
echo " 5 -> Rac1"
echo -e " 6 -> ${RED}Rac105${NC}"
echo " 7 -> Ona catalana"
echo " 8 -> Radio Arrels"
echo " 9 -> Som i serem Radio"
echo " 10 -> Radio Euskadi"
echo " 11 -> RNE 1"
echo " 12 -> RNE 3"
echo " 13 -> Radio 4"
echo " 14 -> RNE 5"
echo " 15 -> RNE clásica"
echo " 16 -> Kiss FM"
echo " 17 -> Cadena dial"
echo " 18 -> Cadena 100"
echo -e " 19 -> ${RED}iCATFM${NC}"
echo -e " 20 -> ${RED}iCATJAZZ${NC}"
echo " 21 -> MUSICATLES"
echo " 22 -> TOTCAT"
echo " 23 -> EuropaFM"
echo " 24 -> 40 Principales"
echo " 25 -> M80"
echo " 26 -> Maxima"
echo " 27 -> Onda Cero"
echo " 28 -> Onda Rambla"
echo " 29 -> Cadena SER"
echo " 30 -> Escolar programes previament grabats"
echo " 31 -> Grabar radios en directe"
echo " 32 -> Sortir del programa"
echo "---------------------------------------------------------------"

read radio

if [ "$radio" = "1" ]; then
mplayer http://rs9.radiostreamer.com:9280/listen.pls
elif [ "$radio" = "2" ]; then
mplayer -playlist http://www.comradio.com/pls/directecomradio.pls
elif [ "$radio" = "3" ]; then
mplayer http://195.10.10.102/tv3/catradio/high.ogg
elif [ "$radio" = "4" ]; then
mplayer http://www.onamallorca.net:8000/live.ogg
elif [ "$radio" = "5" ]; then
mplayer http://212.72.186.18:8410/listen.pls
elif [ "$radio" = "6" ]; then
http://rs9.radiostreamer.com:9280/listen.pls
elif [ "$radio" = "7" ]; then
mplayer mms://82.208.28.37/onacatalana
elif [ "$radio" = "8" ]; then
mplayer http://213.186.61.62:7100/listen.pls
elif [ "$radio" = "9" ]; then
mplayer http://www.somiseremradio.cat/sisradio.m3u
elif [ "$radio" = "10" ]; then
mplayer mms://a943.l881320881.c8813.e.lm.akamaistream.net/D/943/8813/v0001/reflector:20881
elif [ "$radio" = "11" ];then
mplayer -playlist http://www.rtve.es/rne/audio/r1live.asx
elif [ "$radio" = "12" ];then
mplayer -playlist http://www.rtve.es/rne/audio/RNE3.asx
elif [ "$radio" = "13" ];then
mplayer -playlist http://www.rtve.es/rne/audio/RNE4.asx
elif [ "$radio" = "14" ];then
mplayer -playlist http://www.rtve.es/rne/audio/RNE5.asx
elif [ "$radio" = "15" ];then
mplayer -playlist http://www.rtve.es/rne/audio/RNEclasica.asx
elif [ "$radio" = "16" ];then
mplayer -playlist http://pointers.audiovideoweb.com/asxfiles-live/ny60winlive7001.asx
elif [ "$radio" = "17" ];then
mplayer -playlist http://www.los40.com/nuevo_player/dial.asx
elif [ "$radio" = "18" ];then
mplayer mms://live.c100.edgestreams.net/reflector:34743
elif [ "$radio" = "19" ];then
mplayer -cache 200 mms://icatfm.directe-wm.emissio.catradio.cat/reflector:35490
elif [ "$radio" = "20" ];then
mplayer http://www.icatfm.cat/directes/icatjazz_wm.m3u
elif [ "$radio" = "21" ];then
mplayer http://www.icatfm.cat/directes/musicatles_wm.m3u
elif [ "$radio" = "22" ];then
mplayer http://www.icatfm.cat/directes/totcat_wm.m3u
elif [ "$radio" = "23" ];then
mplayer -playlist http://www.ondacero.es/europafm.asx
elif [ "$radio" = "24" ];then
mplayer -playlist http://www.los40.com/nuevo_player/40Principales.asx
elif [ "$radio" = "25" ];then
mplayer -playlist http://www.los40.com/nuevo_player/40Principales.asx
elif [ "$radio" = "26" ];then
mplayer -playlist http://www.los40.com/nuevo_player/maxima.asx
elif [ "$radio" = "27" ];then
mplayer -playlist http://www.ondacero.es/oci.asx
elif [ "$radio" = "28" ];then
mplayer -playlist http://www.ondacero.es/dance.asx
elif [ "$radio" = "29" ];then
mplayer -playlist http://www.cadenaser.com/player/SER-TIC.asx
elif [ "$radio" = "30" ];then
exec /usr/bin/amarok & nautilus --no-desktop --browser %U ~/documents/programes-radio
elif [ "$radio" = "31" ];then
exec /usr/bin/grabradio
elif [ "$radio" = "32" ];then
exit
else
echo " Esta radio no existe"
exit
fi