-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathradio.sh
More file actions
executable file
·72 lines (61 loc) · 2.14 KB
/
radio.sh
File metadata and controls
executable file
·72 lines (61 loc) · 2.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/bin/sh
# check http://www.listenlive.eu/spain.html
playlist_ser=""
# En el pasado la Ser intentaba complicar la vida a quien trataba de no usar su reproductor
function calcula_ser {
fecha=`date +%Y%m%d%H%M`
clave=`wget --referer="http://www.cadenaser.com/player_radio.html" "http://www.cadenaser.com/comunes/player/gettoken.php?update=$fecha&file=SER_LQ" -q -O - | awk -F\' '{print $2}'`
#url="http://mfile3.akamai.com/7841/wsx/prisaffs.download.akamai.com/7807/live/_!/radios/cadenaser.asx?auth="
playlist_ser="http://www.cadenaser.com/comunes/player/mm.php?video=SER_LQ&auth=$clave"
}
if [ -z "$1" ]; then
echo
echo " 1 = Cadena SER"
echo " 2 = RNE Radio 1"
echo " 3 = RNE Radio 3"
echo " 4 = RNE Radio Clásica"
echo " 5 = RNE Radio 5"
echo " 6 = RNE Radio Exterior de Espana"
echo " 7 = Radio Marca"
echo " 8 = COPE"
echo " 9 = Kiss FM"
echo
echo -n "Selecciona emisora: "
read choice
else
choice=$1
fi
if [ $choice == 1 ] ; then
# Cadena SER
#calcula_ser
#mplayer -nocache -playlist "$playlist_ser"
mplayer -nocache -playlist http://194.169.201.177:8085/liveser.mp3.m3u
elif [ $choice == 2 ] ; then
# RNE Radio 1
mplayer -nocache -playlist http://radiolive.rtve.es/rne.m3u
elif [ $choice == 3 ] ; then
# RNE Radio 3
#mplayer -cache-min 5 http://radio3.rtveradio.cires21.com/radio3/mp3/icecast.audio
mplayer -nocache -playlist http://radiolive.rtve.es/radio3.m3u
elif [ $choice == 4 ] ; then
# RNE Clásica
mplayer -nocache -playlist http://radiolive.rtve.es/radioclasica.m3u
elif [ $choice == 5 ] ; then
# RNE Radio 5
mplayer -nocache -playlist http://radiolive.rtve.es/radio5.m3u
elif [ $choice == 6 ] ; then
# RNE Radio Exterior de Espana
mplayer -nocache -playlist http://radiolive.rtve.es/radioexterior.m3u
elif [ $choice == 7 ] ; then
# Radio Marca
mplayer -nocache -playlist http://radioweb.radiomarcabarcelona.com:9000/stream.m3u
elif [ $choice == 8 ] ; then
# COPE
mplayer -nocache -playlist http://www.listenlive.eu/cadenacope.m3u
elif [ $choice == 9 ] ; then
# Kiss FM
mplayer -nocache -playlist http://kissfm.es.audio1.glb.ipercast.net:8000/kissfm.es/mp3.m3u
elif [ $choice == 0 ] ; then
exit 0
else echo "Esa cadena no existe"
fi