A continuación, presentamos un sencillo script en bash para ver y grabar televisión en sistemas GNU/Linux / BSD sin tarjeta capturadora / sintonizadora. Sólo se necesita una conexión a Internet, tener instalado Mplayer, Curl, Rtmpdump y Zenity para entornos Gtk o Kdialog para escritorio que usen Qt como KDE. Actualmente hay más de 80 canales de la TDT española.
En Debian / Ubuntu:
apt-get install mplayer rtmpdump curl
En Mandriva / Mageia:
urpmi mplayer rtmpdump curl
En Arch:
sudo pacman -S mplayer rtmpdump curl
NOTA: El paquete "curl" no es obligatorio, pero permitirá mostrar la programación de cada canal.
Una vez descargado y teniendo los paquetes necesarios instalados, sólo resta darle permisos de ejecución. Esto lo podemos hacer de forma gráfica o bien desde la terminal.
Entorno gráfico:
1.- Botón derecho sobre el archivo y pulsamos "Propiedades".
2.- Pestaña Permisos, Hacer el archivo ejecutable.
3.- Doble clic sobre el archivo.
Terminal:
chmod u+x TVenLinux.sh ./TVenLinux.sh (también funcionaría haciendo doble clic sobre el archivo)
Para ejecutar el programa podemos hacerlo desde consola ($ ./TVenLinux.sh) o bien doble clic desde el entorno gráfico.
Una vez ejecutado, si falta algún paquete por instalar, será avisado de ello.
Algunos canales no emiten a internet en determinadas horas o bien no emiten determinados programas por tema de copyright.
Es posible que algunos canales dejen de funcionar, se intentará ir actualizando (Mirar fecha) el script periódicamente para reponer canales y mejorarlo.
Si el ancho de banda está saturado o es insuficiente habrá problemas de desconexión (Mire la sección de "Configuración").
Para cambiar de canal hay que cerrar el reproductor (Letra Q o cerrar la ventana).
Algunos canales no muestran su programación, eso es normal, no un error.
Tener ancho de banda no saturado (P2P, Youtube, Torrent,...) para no tener problemas con la recepción.
Si el sonido y el audio están descompasados, con el cursor izquierdo podemos volver 10 segundos atrás y suele solucionar el problema.
De tener Zenity y Kdialog instalados sin usar Kde como escritorio, el script usará Zenity, para forzar Kdialog modifique el script en la sección "Escritorio KDE"
Si las desconexiones son frecuentes, podemos probar a pausar (Letra P) la reproducción al poco de comenzar, de esa forma la cache irá subiendo. También se puede modificar el script en su sección "Configuración" para que cachee más tiempo antes de empezar a reproducir.
En la parte inferior del script se puede modificar el reproductor a usar, aunque se recomienda mplayer ya que otros reproductores como VLC no sincronizan el audio con el vídeo de manera tan eficiente.
Si la programación tiene caracteres extraños en vez de acentos, es debido a que tu distribución GNU/Linux no usa la codificación UTF-8.
Si el reproductor muestra una pantalla azul, se debe a problemas con el driver de Nvidia y se debe modificar el comando mplayer añadiendo la opción: -vo gl
Izquierda: Retrocede 10 segundos.
Derecha: Avanza 10 segundos (No recomendado a no ser que tengamos mucha cache del streaming).
Arriba: Avanza 1 minuto (No recomendado a no ser que tengamos mucha cache del streaming).
Abajo: Retrocede 1 minuto.
Av. Pág: Retrocede 10 minutos (No recomendado a no ser que tengamos mucha cache del streaming).
Re Pág: Avanza 10 minutos.
p, Espacio: Pausa / Reproducir.
m: Silencio.
F: Pantalla completa.
Mays + t: Siempre encima.
q, Esc: Cierra mplayer.
Fuente: TVenlinux.com
#!/usr/bin/env bash
###############################################
# www.TVenLinux.com #
# Actualizado: 28/11/2012 #
# Autor: Busindre (busilezas[@]gmail.com) #
# Programación TV: www.programacion-tdt.com #
###############################################
############################### Configuración.
CACHE_STREAMING=12 # Segundos que estará descargando el streaming de TV antes de empezar a reproducirlo, aumentar los segundos para conexiones lentas.
CACHE_MPLAYER=10000 # Número de Kbytes que usará Mplayer para poder retroceder en la visualización del streaming de TV.
############################### Escritorio KDE.
if [ "$DESKTOP_SESSION" = "KDE" -o "$KDE_FULL_SESSION" = "true" ]; then
KDE=0;
else
KDE=1;
fi
# Si no usamos KDE como escritorio pero está instalado y no queremos usar zenity, descometar esta linea.
#KDE=0
############################### Dependencias (Zenity | Kdialog, mplayer y rtmpdump).
if [ $KDE -eq 1 ]; then
whereis -B "/usr/sbin" "/usr/local/sbin" "/sbin" "/usr/bin" "/usr/local/bin" "/bin" -b zenity | grep -i "/zenity" > /dev/null
zenity=$?
if [ $zenity -eq 1 ]; then
xterm -fa default -fs 12 -bg white -fg black -geometry 75x2 -T "Error" -e "echo 'No se ha podido encontrar el programa "zenity" instalado en su equipo' && sleep 5" ;
exit
fi
else
whereis -B "/usr/sbin" "/usr/local/sbin" "/sbin" "/usr/bin" "/usr/local/bin" "/bin" -b kdialog | grep -i "/kdialog" > /dev/null
kdialog=$?
if [ $kdialog -eq 1 ]; then
xterm -fa default -fs 12 -bg white -fg black -geometry 75x2 -T "Error" -e "echo 'No se ha podido encontrar el programa "kdialog" instalado en su equipo' && sleep 5" ;
exit
fi
fi
whereis -B "/usr/sbin" "/usr/local/sbin" "/sbin" "/usr/bin" "/usr/local/bin" "/bin" -b mplayer | grep -i "/mplayer"> /dev/null
mplayer=$?
if [ $mplayer -eq 1 -a $KDE -eq 1 ]; then
zenity --no-wrap --error --text='No se ha podido encontrar el programa "mplayer" instalado en su equipo' ;
exit
elif [ $mplayer -eq 1 -a $KDE -eq 0 ]; then
kdialog --title 'Dependencia no encontrada' --error 'No se ha podido encontrar el programa "mplayer" instalado en su equipo' ;
exit
fi
whereis -B "/usr/sbin" "/usr/local/sbin" "/sbin" "/usr/bin" "/usr/local/bin" "/bin" -b rtmpdump | grep -i "/rtmpdump" > /dev/null
rtmpdump=$?
if [ $rtmpdump -eq 1 -a $KDE -eq 1 ]; then
zenity --no-wrap --error --text='No se ha podido encontrar el programa "rtmpdump" instalado en su equipo' ;
exit
elif [ $rtmpdump -eq 1 -a $KDE -eq 0 ]; then
kdialog --title 'Dependencia no encontrada' --error 'No se ha podido encontrar el programa "rtmpdump" instalado en su equipo' ;
exit
fi
################################ Curl como dependencia / Programación de cada canal.
whereis -B "/usr/sbin" "/usr/local/sbin" "/sbin" "/usr/bin" "/usr/local/bin" "/bin" -b curl | grep -i "/curl" > /dev/null
curl=$?
if [ $curl -eq 1 -a $KDE -eq 1 ]; then
zenity --no-wrap --warning --timeout=2 --text='No se ha podido encontrar el programa "curl" instalado en su equipo, no podrá visualizar el nombre de los programas en activo' ;
curl=1;
elif [ $curl -eq 1 -a $KDE -eq 0 ]; then
kdialog --warningcontinuecancel 'No se ha podido encontrar el programa "curl" instalado en su equipo, no podrá visualizar el nombre de los programas en activo' ;
curl=1;
else
curl -s http://www.programacion-tdt.com/ahora.php | iconv -t utf-8 -f iso-8859-1 | grep -A 1 -i "<td" | sed -e 's/<td width="250" valign="top">/Canal: /' -e 's/<\/td>/ /' -e 's/<\/tr>/ /' -e 's/<td width="70%"><span class="ind">/Programa: /' -e 's/<\/span> comenzó/ [/' -e 's/minutos/minutos ]/' -e 's/segundos/segundos ]/' -e 's/ //' > /tmp/programacion
curl=0;
fi
grep "Paramount Channel" /tmp/programacion > /dev/null
programacion=$?
if [ $programacion -eq 1 -a $curl -eq 0 -a $KDE -eq 1 ]; then # Si no se encontraron los canales en el fichero pero sí está instalado curl (Fallo al conectar).
zenity --no-wrap --warning --timeout=2 --text='No se ha podido descargar la programación de cada canal' ;
curl=1;
elif [ $programacion -eq 1 -a $curl -eq 0 -a $KDE -eq 0 ]; then
kdialog --warningcontinuecancel 'No se ha podido descargar la programación de cada canal' ;
curl=1;
elif [ $curl -eq 0 ]; then # Si curl está instalado y se ha podido descargar la lista de canales.
AHORA=`date`;
rtve1=`grep -A 1 "TVE1 quot; /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
rtve2=`grep -A 1 "La 2 quot; /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
tdp=`grep -A 1 "Teledeporte quot; /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
Antena_3=`grep -A 1 "Antena 3 quot; /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
La_Sexta=`grep -A 1 "La Sexta quot; /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
Cuatro=`grep -A 1 "Cuatro quot; /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
Tele5=`grep -A 1 "Telecinco quot; /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
Xplora=`grep -A 1 "xplora quot; /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
Nitro=`grep -A 1 "Nitro quot; /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
Neox=`grep -A 1 "A3 Neox quot; /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
La_Sexta_3=`grep -A 1 "La Sexta 3 quot; /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
Paramount=`grep -A 1 "Paramount Channel quot; /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
Intereconomia=`grep -A 1 "Intereconomia TV quot; /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
Energy=`grep -A 1 "Energy quot; /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
FDF=`grep -A 1 "FDF quot; /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
Divinity=`grep -A 1 "Divinity quot; /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
GolTV=`grep -A 1 "GolTV quot; /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
trecetv=`grep -A 1 "13 TV quot; /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
Cyl7=`grep -A 1 "cyl7 quot; /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
BarcelonaTV=`grep -A 1 "Barcelona TV quot; /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
AragonTV=`grep -A 1 "Aragon Television quot; /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
Galicia_TV_AM=`grep -A 1 "Galicia TV America quot; /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
TVRioja=`grep -A 1 "TVR quot; /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
TPA_a7=`grep -A 1 "TPA a7 quot; /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
Andalucia=`grep -A 1 "Canal Sur quot; /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
Canal9_24=`grep -A 1 "Noudos quot; /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
IB3=`grep -A 1 "IB3 quot; /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
TV3=`grep -A 1 "TV3 quot; /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
Esport3=`grep -A 1 "Esport3 quot; /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
TV3_24=`grep -A 1 "3 24 quot; /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
Super3=`grep -A 1 "Canal Super3 quot; /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
Intereconomia_Business=" - ";
Canarias_NET=" - ";
Canarias=" - ";
Eldia_TV=" - "
Onda_Azul=" - ";
Ribera_TV=" - "
Telemadrid_SAT=" - ";
Etb_SAT=" - ";
Discovery_Channel=" - ";
TNT=" - ";
Xtrm=" - ";
SyFy=" - ";
Cosmo=" - ";
Galicia_TV_EU=" - "
Canal_33=" - "
Abteve=" - "
KissTV=" - "
UnaCadiz=" - "
EuroNews_ES=" - "
TeleBilbao=" - "
UnaCordoba=" - "
Telebahia=" - "
ImasTV=" - "
ZaragozaTV=" - "
TeleToledo=" - "
Huelva_CNH=" - "
LevanteTV=" - "
InformacionTV=" - "
PTV_Malaga=" - "
CostadelSol_TV=" - "
M95TV=" - "
Russian_Today=" - "
TeleSur=" - "
GoticaTV=" - "
LobasTV=" - "
PartyTV=" - "
Unlove=" - "
Canal_Extremadura=" - "
Aljazeera_Eng=" - "
Esne_TV=" - "
Aragon_TV=" - "
Huelva_TV=" - "
LUX_Mallorca=" - "
Huesca_TV=" - "
TeleB=" - "
TV_Girona=" - "
RtvCE=" - "
TVMelilla=" - "
TVCS=" - "
Astrocanalshop=" - "
Ondamex=" - "
Panamericana=" - "
Global_TV=" - "
ATV_Sur=" - "
AricaTV=" - "
Cetelmon_TV=" - "
SolidariaTV=" - "
Hispan_TV=" - "
fi
############################## Canales.
if [ $curl -eq 0 -a $KDE -eq 1 ]; then
CANAL=`zenity --window-icon="/usr/share/icons/hicolor/48x48/devices/totem-tv.png" --list --title="TDT" --text="Seleccione un canal" --height=500 --width=650 --column="Canales" --column="Emisión $AHORA " "rtve1" "$rtve1" "rtve2" "$rtve2" "tdp" "$tdp" "Antena_3" "$Antena_3" "La_Sexta" "$La_Sexta" "Cuatro" "$Cuatro" "Tele5" "$Tele5" "Xplora" "$Xplora" "Nitro" "$Nitro" "Neox" "$Neox" "La_Sexta_3" "$La_Sexta_3" "Paramount" "$Paramount" "Intereconomia" "$Intereconomia" "Intereconomia_Business" "$Intereconomia_Business" "13TV" "$trecetv" "Energy" "$Energy" "FDF" "$FDF" "EuroNews_ES" "$EuroNews_ES" "Russian_Today" "$Russian_Today" "TeleSur" "$TeleSur" "AragonTV" "$AragonTV" "Galicia_TV_EU" "$Galicia_TV_EU" "Galicia_TV_AM" "$Galicia_TV_AM" "Canarias_NET" "$Canarias_NET" "Canarias" "$Canarias" "Eldia_TV" "$Eldia_TV" "Andalucia" "$Andalucia" "Huelva_TV" "$Huelva_TV" "Abteve" "$Abteve" "TVRioja" "$TVRioja" "TPA_a7" "$TPA_a7" "BarcelonaTV" "$BarcelonaTV" "IB3" "$IB3" "Canal9_24" "$Canal9_24" "Onda_Azul" "$Onda_Azul" "TV3" "$TV3" "TV3_24" "$TV3_24" "Canal_33" "$Canal_33" "Esport3" "$Esport3" "Super3" "$Super3" "TeleB" "$TeleB" "TV_Girona" "$TV_Girona" "TVCS" "$TVCS" "Ribera_TV" "$Ribera_TV" "Telemadrid_SAT" "$Telemadrid_SAT" "Cyl7" "$Cyl7" "Etb_SAT" "$Etb_SAT" "TeleBilbao" "$TeleBilbao" "Divinity" "$Divinity" "Discovery_Channel" "$Discovery_Channel" "TNT" "$TNT" "Xtrm" "$Xtrm" "SyFy" "$SyFy" "Cosmo" "$Cosmo" "UnaCadiz" "$UnaCadiz" "UnaCordoba" "$UnaCordoba" "Telebahia" "$Telebahia" "ImasTV" "$ImasTV" "ZaragozaTV" "$ZaragozaTV" "TeleToledo" "$TeleToledo" "Huelva_CNH" "$Huelva_CNH" "LevanteTV" "$LevanteTV" "InformacionTV" "$InformacionTV" "PTV_Malaga" "$PTV_Malaga" "CostadelSol_TV" "$CostadelSol_TV" "M95TV" "$M95TV" "Canal_Extremadura" "$Canal_Extremadura" "Aragon_TV" "$Aragon_TV" "Huesca_TV" "$Huesca_TV" "LUX_Mallorca" "$LUX_Mallorca" "RtvCE" "$RtvCE" "TVMelilla" "$TVMelilla" "Hispan_TV" "$Hispan_TV" "KissTV" "$KissTV" "GoticaTV" "$GoticaTV" "LobasTV" "$LobasTV" "PartyTV" "$PartyTV" "Unlove" "$Unlove" "Aljazeera_Eng" "$Aljazeera_Eng" "Esne_TV" "$Esne_TV" "Astrocanalshop" "$Astrocanalshop" "Ondamex" "$Ondamex" "Panamericana" "$Panamericana" "Global_TV" "$Global_TV" "ATV_Sur" "$ATV_Sur" "AricaTV" "$AricaTV" "Cetelmon_TV" "$Cetelmon_TV" "SolidariaTV" "$SolidariaTV"`
elif [ $curl -eq 0 -a $KDE -eq 0 ]; then
CANAL=`kdialog --title "TVenLINUX" --geometry 650x600 --menu "Seleccione un canal --- $AHORA" "rtve1" "rtve1 ---> $rtve1" "rtve2" "rtve2 ---> $rtve2" "tdp" "tdp ---> $tdp" "Antena_3" "Antena_3 ---> $Antena_3" "La_Sexta" "La_Sexta ---> $La_Sexta" "Cuatro" "Cuatro ---> $Cuatro" "Tele5" "Tele5 ---> $Tele5" "Xplora" "Xplora ---> $Xplora" "Nitro" "Nitro ---> $Nitro" "Neox" "Neox ---> $Neox" "La_Sexta_3" "La_Sexta_3 ---> $La_Sexta_3" "Paramount" "Paramount ---> $Paramount" "Intereconomia" "Intereconomia ---> $Intereconomia" "Intereconomia_Business" "Intereconomia_Business ---> $Intereconomia_Business" "13TV" "13TV ---> $trecetv" "Energy" "Energy ---> $Energy" "FDF" "FDF ---> $FDF" "EuroNews_ES" "EuroNews_ES ---> $EuroNews_ES" "Russian_Today" "Russian_Today ---> $Russian_Today" "TeleSur" "TeleSur ---> $TeleSur" "AragonTV" "AragonTV ---> $AragonTV" "Galicia_TV_EU" "Galicia_TV_EU ---> $Galicia_TV_EU" "Galicia_TV_AM" "Galicia_TV_AM ---> $Galicia_TV_AM" "Canarias_NET" "Canarias_NET ---> $Canarias_NET" "Canarias" "Canarias ---> $Canarias" "Eldia_TV" "Eldia_TV ---> $Eldia_TV" "Andalucia" "Andalucia ---> $Andalucia" "Huelva_TV" "Huelva_TV ---> $Huelva_TV" "Abteve" "Abteve ---> $Abteve" "TVRioja" "TVRioja ---> $TVRioja" "TPA_a7" "TPA_a7 ---> $TPA_a7" "BarcelonaTV" "BarcelonaTV ---> $BarcelonaTV" "IB3" "IB3 ---> $IB3" "Canal9_24" "Canal9_24 ---> $Canal9_24" "Onda_Azul" "Onda_Azul ---> $Onda_Azul" "TV3" "TV3 ---> $TV3" "TV3_24" "TV3_24 ---> $TV3_24" "Canal_33" "Canal_33 ---> $Canal_33" "Esport3" "Esport3 ---> $Esport3" "Super3" "Super3 ---> $Super3" "TeleB" "TeleB ---> $TeleB" "TV_Girona" "TV_Girona ---> $TV_Girona" "TVCS" "TVCS ---> $TVCS" "Ribera_TV" "Ribera_TVT ---> $Ribera_TV" "Telemadrid_SAT" "Telemadrid_SAT ---> $Telemadrid_SAT" "Cyl7" "Cyl7 ---> $Cyl7" "Etb_SAT" "Etb_SAT ---> $Etb_SAT" "TeleBilbao" "TeleBilbao ---> $TeleBilbao" "Divinity" "Divinity ---> $Divinity" "Discovery_Channel ---> $Discovery_Channel" "TNT" "TNT ---> $TNT" "Xtrm" "Xtrm ---> $Xtrm" "SyFy" "SyFy ---> $SyFy" "Cosmo" "Cosmo ---> $Cosmo" "UnaCadiz" "UnaCadiz ---> $UnaCadiz" "UnaCordoba" "UnaCordoba ---> $UnaCordoba" "Telebahia" "Telebahia ---> $Telebahia" "ImasTV" "ImasTV ---> $ImasTV" "ZaragozaTV" "ZaragozaTV ---> $ZaragozaTV" "TeleToledo" "TeleToledo ---> $TeleToledo" "Huelva_CNH" "Huelva_CNH ---> $Huelva_CNH" "LevanteTV" "LevanteTV ---> $LevanteTV" "InformacionTV" "InformacionTV ---> $InformacionTV" "PTV_Malaga" "PTV_Malaga ---> $PTV_Malaga" "CostadelSol_TV" "CostadelSol_TV ---> $CostadelSol_TV" "M95TV" "M95TV ---> $M95TV" "Canal_Extremadura" "Canal_Extremadura ---> $Canal_Extremadura" "Aragon_TV" "Aragon_TV ---> $Aragon_TV" "Huesca_TV" "Huesca_TV ---> $Huesca_TV" "LUX_Mallorca" "LUX_Mallorca ---> $LUX_Mallorca" "RtvCE" "RtvCE ---> $RtvCE" "TVMelilla" "TVMelilla ---> $TVMelilla" "Hispan_TV" "Hispan_TV ---> $Hispan_TV" "KissTV" "KissTV ---> $KissTV" "GoticaTV" "GoticaTV ---> $GoticaTV" "LobasTV" "LobasTV ---> $LobasTV" "PartyTV" "PartyTV ---> $PartyTV" "Unlove" "Unlove ---> $Unlove" "Aljazeera_Eng" "Aljazeera_Eng ---> $Aljazeera_Eng" "Esne_TV" "Esne_TV ---> $Esne_TV" "Astrocanalshop" "Astrocanalshop ---> $Astrocanalshop" "Ondamex" "Ondamex ---> $Ondamex" "Panamericana" "Panamericana ---> $Panamericana" "Global_TV" "Global_TV ---> $Global_TV" "ATV_Sur" "ATV_Sur ---> $ATV_Sur" "AricaTV" "AricaTV ---> $AricaTV" "Cetelmon_TV" "Cetelmon_TV ---> $Cetelmon_TV" "SolidariaTV" "SolidariaTV ---> $SolidariaTV"`
elif [ $curl -eq 1 -a $KDE -eq 1 ]; then
# Si no se pudo conectar a la programación mostramos este dialogo sin la programación.
CANAL=`zenity --window-icon="/usr/share/icons/hicolor/48x48/devices/totem-tv.png" --list --title="TDT" --text="Seleccione un canal" --height=400 --column="Canales" "rtve1" "rtve2" "tdp" "Antena_3" "La_Sexta" "Cuatro" "Tele5" "Xplora" "Nitro" "Neox" "La_Sexta_3" "Paramount" "Intereconomia" "Intereconomia_Business" "Energy" "FDF" "EuroNews_ES" "Russian_Today" "TeleSur" "AragonTV" "Galicia_TV_EU" "Galicia_TV_AM" "Canarias_NET" "Canarias" "Eldia_TV" "Andalucia" "Huelva_TV" "Abteve" "TVRioja" "TPA_a7" "BarcelonaTV" "IB3" "Canal9_24" "Onda_Azul" "TV3" "TV3_24" "Canal_33" "Esport3" "Super3" "TeleB" "TV_Girona" "TVCS" "Ribera_TV" "Telemadrid_SAT" "Cyl7" "Etb_SAT" "TeleBilbao" "Divinity" "Discovery_Channel" "TNT" "Xtrm" "SyFy" "Cosmo" "UnaCadiz" "UnaCordoba" "Telebahia" "ImasTV" "ZaragozaTV" "TeleToledo" "Huelva_CNH" "LevanteTV" "InformacionTV" "PTV_Malaga" "CostadelSol_TV" "M95TV" "Canal_Extremadura" "Aragon_TV" "Huesca_TV" "LUX_Mallorca" "RtvCE" "TVMelilla" "Hispan_TV" "KissTV" "GoticaTV" "LobasTV" "PartyTV" "Unlove""Aljazeera_Eng" "Esne_TV" "Astrocanalshop" "Ondamex" "Panamericana" "Global_TV" "ATV_Sur" "AricaTV" "Cetelmon_TV" "SolidariaTV"`
elif [ $curl -eq 1 -a $KDE -eq 0 ]; then
CANAL=`kdialog --title "TVenLINUX" --geometry 100x600 --menu "Seleccione un Canal" "rtve1" "rtve1" "rtve2" "rtve2" "tdp" "tdp" "Antena_3" "Antena_3" "La_Sexta" "La_Sexta" "Cuatro" "Cuatro" "Tele5" "Tele5" "Xplora" "Xplora" "Nitro" "Nitro" "Neox" "Neox" "La_Sexta_3" "La_Sexta_3" "Paramount" "Paramount" "Intereconomia" "Intereconomia" "Intereconomia_Business" "Intereconomia_Business" "13TV" "13TV" "Energy" "Energy" "FDF" "FDF" "EuroNews_ES" "EuroNews_ES" "Russian_Today" "Russian_Today" "TeleSur" "TeleSur" "AragonTV" "AragonTV" "Galicia_TV_EU" "Galicia_TV_EU" "Galicia_TV_AM" "Galicia_TV_AM" "Canarias_NET" "Canarias_NET" "Canarias" "Canarias" "Eldia_TV" "Eldia_TV" "Andalucia" "Andalucia" "Huelva_TV" "Huelva_TV" "Abteve" "Abteve" "TVRioja" "TVRioja" "TPA_a7" "TPA_a7" "BarcelonaTV" "BarcelonaTV" "IB3" "IB3" "Canal9_24" "Canal9_24" "Onda_Azul" "Onda_Azul" "TV3" "TV3" "TV3_24" "TV3_24" "Canal_33" "Canal_33" "Esport3" "Esport3" "Super3" "Super3" "TeleB" "TeleB" "TV_Girona" "TV_Girona" "TVCS" "TVCS" "Ribera_TV" "Ribera_TV" "Telemadrid_SAT" "Telemadrid_SAT" "Cyl7" "Cyl7" "Etb_SAT" "Etb_SAT" "TeleBilbao" "TeleBilbao" "Divinity" "Divinity" "Discovery_Channel" "Discovery_Channel" "TNT" "TNT" "Xtrm" "Xtrm" "SyFy" "SyFy" "Cosmo" "Cosmo" "UnaCadiz" "UnaCadiz" "UnaCordoba" "UnaCordoba" "Telebahia" "Telebahia" "ImasTV" "ImasTV" "ZaragozaTV" "ZaragozaTV" "TeleToledo" "TeleToledo" "Huelva_CNH" "Huelva_CNH" "LevanteTV" "LevanteTV" "InformacionTV" "InformacionTV" "PTV_Malaga" "PTV_Malaga" "CostadelSol_TV" "CostadelSol_TV" "M95TV" "M95TV" "Canal_Extremadura" "Canal_Extremadura" "Aragon_TV" "Aragon_TV" "Huesca_TV" "Huesca_TV" "LUX_Mallorca" "LUX_Mallorca" "RtvCE" "RtvCE" "TVMelilla" "TVMelilla" "Hispan_TV" "Hispan_TV" "KissTV" "KissTV" "GoticaTV" "GoticaTV" "LobasTV" "LobasTV" "PartyTV" "PartyTV" "Unlove" "Unlove" "Aljazeera_Eng" "Aljazeera_Eng" "Esne_TV" "Esne_TV" "Astrocanalshop" "Astrocanalshop" "Ondamex" "Ondamex" "Panamericana" "Panamericana" "Global_TV" "Global_TV" "ATV_Sur" "ATV_Sur" "AricaTV" "AricaTV" "Cetelmon_TV" "Cetelmon_TV" "SolidariaTV" "SolidariaTV"`
fi
case $CANAL in
rtve1) rtmpdump -r "rtmp://cp68975.live.edgefcs.net:1935/live" --playpath "LA1_AKA_WEB_NOG@58877" -W "http://www.rtve.es/swf/4.1.11/RTVEPlayerVideo.swf" -p "http://www.rtve.es/noticias/directo-la-1" -t "rtmp://cp68975.live.edgefcs.net:1935/live" -v -q -o /tmp/caca & ;;
rtve2) rtmpdump -r "rtmp://cp68975.live.edgefcs.net:1935/live" --playpath "LA2_AKA_WEB_NOG@60554" -W "http://www.rtve.es/swf/4.1.11/RTVEPlayerVideo.swf" -p "http://www.rtve.es/television/la-2-directo" -t "rtmp://cp68975.live.edgefcs.net:1935/live" -q -v -o /tmp/caca & ;;
tdp) rtmpdump -r "rtmp://cp48772.live.edgefcs.net:1935/live" --playpath "TDP_AKA_WEB_GEO@58884" -W "http://www.rtve.es/swf/4.0.37/RTVEPlayerVideo.swf" -p "http://www.rtve.es/deportes/directo/teledeporte" -q -v -o /tmp/caca & ;;
Antena_3) rtmpdump -r "rtmp://antena3fms35livefs.fplive.net:1935/antena3fms35live-live" --playpath "stream-antena3" -W "http://www.antena3.com/static/swf/A3Player.swf?nocache=200" -p "http://www.antena3.com/directo/" -q -v -o /tmp/caca & ;;
La_Sexta) rtmpdump -r "rtmp://antena3fms35livefs.fplive.net:1935/antena3fms35live-live/stream-lasexta" -W "http://www.antena3.com/static/swf/A3Player.swf" -p "http://www.lasexta.com/directo" -q -v -o /tmp/caca & ;;
Cuatro) rtmpdump -r "rtmp://174.37.222.57/live" --playpath "cuatrolacajatv?id=14756" -W "http://www.ucaster.eu/static/scripts/eplayer.swf" -p "http://www.ucaster.eu/embedded/cuatrolacajatv/1/670/400" -q -v -o /tmp/caca & ;;
Tele5) rtmpdump -r "rtmp://68.68.31.229/live" --playpath "t5hdlacajatv2" -W "http://www.udemy.com/static/flash/player5.9.swf" -p "http://www.castamp.com/embed.php?c=t5hdlacajatv2&vwidth=670&vheight=400" -q -o /tmp/caca & ;;
Xplora) rtmpdump -r "rtmp://antena3fms35geobloqueolivefs.fplive.net:1935/antena3fms35geobloqueolive-live/stream-xplora" -W "http://www.antena3.com/static/swf/A3Player.swf" -p "http://www.lasexta.com/xplora/directo" -q -v -o /tmp/caca & ;;
#ahora no tira
Nitro) rtmpdump -r "rtmp://173.193.242.248/live" --playpath "nitrolacajatv?id=126587" -W "http://mips.tv/content/scripts/eplayer.swf" -p "http://mips.tv/embedplayer/nitrolacajatv/1/670/400" -q -v -o /tmp/caca & ;;
Neox) rtmpdump -r "rtmp://live.zcast.us:1935/liveorigin/_definst_" --playpath "neoxlacaja-lI7mjw6RDa" -W "http://player.zcast.us/player58.swf" -p "http://zcast.us/gen.php?ch=neoxlacaja-lI7mjw6RDa&width=670&height=400" -q -v -o /tmp/caca & ;;
La_Sexta_3) rtmpdump -r "rtmp://174.36.251.140/live/lasexta3lacaja?id=15912" -W "http://www.ucaster.eu/static/scripts/eplayer.swf" -p "http:schuster92.com" -q -o /tmp/caca & ;;
Paramount) rtmpdump -r "rtmp://173.193.46.109/live" --playpath "179582" -W "http://static.castalba.tv/player.swf" -p "http://castalba.tv/embed.php?cid=9947&wh=680&ht=400&r=lacajatv.es" -q -v -o /tmp/caca & ;;
Intereconomia) rtmpdump -r "rtmp://media.intereconomia.com/live/intereconomiatv1" -q -v -o /tmp/caca & ;;
Intereconomia_Business) rtmpdump -r "rtmp://media.intereconomia.com/live" --playpath "business1" -W "ttp://www.intereconomia.com/flowplayer-3.2.5.swf?0.19446.067378316934" -p "http://www.intereconomia.com/ver-intereconomia-business-tv" -q -v -o /tmp/caca & ;;
13TV) rtmpdump -r "rtmp://xiiitvlivefs.fplive.net/xiiitvlive-live" --playpath "stream13tv" -W "http://static.hollybyte.com/public/players/flowplayer/swf/flowplayer.commercial.swf" -p "http://live.13tv.hollybyte.tv/embed/4f33a91894a05f5f49020000" -q -v -o /tmp/caca & ;;
Marca_TV) rtmpdump -r "rtmp://213.163.71.162/directstreamEd" --playpath "marcatv678" -W "http://directstream.us/swfs/player.swf" -p "http://directstream.us/embed.php?file=marcatv678&width=650&height=400" -q -o /tmp/caca & ;;
Energy) rtmpdump -r "rtmp://68.68.31.224/live" --playpath "lacajatvenergy" -W "http://www.udemy.com/static/flash/player5.9.swf" -p "http://www.castamp.com/embed.php?c=lacajatvenergy&vwidth=670&vheight=400" -q -o /tmp/caca & ;;
FDF) rtmpdump -r "rtmp://173.193.223.184/live" --playpath "fdf47?id=137578" -W "http://mips.tv/content/scripts/eplayer.swf" -p "http://mips.tv" -q -v -o /tmp/caca & ;;
AragonTV) rtmpdump -r "rtmp://aragontvlivefs.fplive.net/aragontvlive-live" --playpath "stream_normal_abt" -W "http://alacarta.aragontelevision.es/streaming/flowplayer.commercial-3.2.7.swf" -p "http://alacarta.aragontelevision.es/streaming/streaming.html" -q -v -o /tmp/caca & ;;
Huesca_TV) rtmpdump -r "rtmp://streaming2.radiohuesca.com/live/" -W "http://player.longtailvideo.com/player5.3.swf" --playpath "huescatv" -p "http://www.intertelevision.com/spain/localiatv.php" -v -o /tmp/caca & ;;
Galicia_TV_EU) rtmpdump -r "rtmp://media3.crtvg.es:80/live" --playpath "tvge_2" -W "http://www.crtvg.es/flowplayer3/flowplayer.commercial-3.2.7.swf" -p "http://www.crtvg.es/tvg/tvg-en-directo" -q -v -o /tmp/caca & ;;
Galicia_TV_AM) rtmpdump -r "rtmp://media3.crtvg.es:80/live" --playpath "tvga_2" -W "http://www.crtvg.es/flowplayer3/flowplayer.commercial-3.2.7.swf" -p "http://www.crtvg.es/tvg/tvg-en-directo/canle/galicia-tv-america" -q -v -o /tmp/caca & ;;
Canarias) rtmpdump -r "rtmp://streamrtvc.mad.idec.net/rtvc1" --playpath "rtvc_1.sdp" -W "http://www.rtvc.es/swf/flowplayer.commercial-3.1.5.swf" -p "http://www.rtvc.es/television/enDirecto.aspx?canal=tv" -v -o /tmp/caca & ;;
Canarias_NET) rtmpdump -r "rtmp://streamrtvc.mad.idec.net:1935/rtvcnet/" --playpath "rtvc_net.sdp" -W "http://www.rtvc.es/swf/flowplayer.commercial-3.1.5.swf" -p "http://www.rtvc.es/television/enDirecto.aspx?canal=tv" -q -v -o /tmp/caca & ;;
Eldia_TV) rtmpdump -r "rtmp://teledifusion.tv/dia" --playpath "dia" -W "http://www.eldia.tv/player.swf" -p "http://www.eldia.tv/" -q -v -o /tmp/caca & ;;
TVRioja) rtmpdump -r "rtmp://teledifusion.tv/rioja" --playpath "rioja" -W "http://www.tvr.es/html5/player.swf" -p "http://www.tvr.es/directo.php" -q -v -o /tmp/caca & ;;
TPA_a7) rtmpdump -r "rtmp://teledifusion.tv:1935/asturiastv" --playpath "asturiastvlive" -W "http://www.rtpa.es/jwplayer/player.swf" -p "http://www.rtpa.es/television" -q -v -o /tmp/caca & ;;
Andalucia) wget --quiet -O /tmp/caca http://195.10.10.220/rtva/andaluciatelevisionh264.flv & ;;
Huelva_TV) rtmpdump -r "rtmp://flash3.todostreaming.es/huelvatv" -W "http://www.huelvatv.com/plugins/content/jw_allvideos/includes/js/mediaplayer/player.swf" --playpath "livestream" -p "http://huelvatv.com/index.php/en-directo" -q -v -o /tmp/caca & ;;
Abteve) rtmpdump -r "rtmp://live.cycnet.eu/flvplayback" --playpath "ts_2_68_69" -W "http://www.abteve.com/live/flowplayer/flowplayer-3.2.11.swf" -p "http://www.abteve.com/abteve-on-line.htm" -q -v -o /tmp/caca & ;;
BarcelonaTV) wget --quiet -O /tmp/caca http://195.10.10.207/barcelonatv/barcelonatv-high.flv & ;;
IB3) rtmpdump -r "rtmp://ib3tvlivefs.fplive.net/ib3tvlive-live" --playpath "streamib3" -W "http://ib3cdn.s3.amazonaws.com/player/player.swf" -p "http://ib3tv.com/ib3/player/ib3sat.php" -q -v -o /tmp/caca & ;;
Canal9_24) wget --quiet -O /tmp/caca http://195.10.10.223/rtvv/canal9.flv & ;;
Onda_Azul) rtmpdump -r "rtmp://ondaazullivefs.fplive.net:1935/ondaazullive-live/" --playpath "ondaazullive-stream1" -W "http://www.freeetv.com/script/mediaplayer/player.swf" -p "http://www.waaatch.com/modules.php?name=Video_Stream&page=watch&id=4690" -q -v -o /tmp/caca & ;;
TV3) rtmpdump -r "rtmp://tv-nogeo-flashlivefs.fplive.net/tv-nogeo-flashlive-live" --playpath "stream_TV3CAT_FLV" -W "http://www.tv3.cat/ria/players/3ac/evp/Main.swf" -p "http://www.tv3.cat/directes/" -q -v -o /tmp/caca & ;;
TV3_24) rtmpdump -r "rtmp://tv-nogeo-flashlivefs.fplive.net/tv-nogeo-flashlive-live" --playpath "stream_324_FLV" -W "http://www.tv3.cat/ria/players/3ac/evp/Main.swf" -p "http://www.tv3.cat/directes/" -q -v -o /tmp/caca & ;;
Canal_33) rtmpdump -r "rtmp://tv-nogeo-flashlivefs.fplive.net/tv-nogeo-flashlive-live" --playpath "stream_33D_FLV" -W "http://www.tv3.cat/ria/players/3ac/evp/Main.swf" -p "http://www.tv3.cat/directes/" -q -v -o /tmp/caca & ;;
Esport3) rtmpdump -r "rtmp://tv-nogeo-flashlivefs.fplive.net/tv-nogeo-flashlive-live" --playpath "stream_ES3_FLV" -W "http://www.tv3.cat/ria/players/3ac/evp/Main.swf" -p "http://www.tv3.cat/directes/" -q -v -o /tmp/caca & ;;
Super3) rtmpdump -r "rtmp://tv-nogeo-flashlivefs.fplive.net/tv-nogeo-flashlive-live" --playpath "stream_33D_FLV" -W "http://www.tv3.cat/ria/players/3ac/evp/Main.swf" -p "http://www.tv3.cat/3alacarta/#/directes/SUPER3" -q -v -o /tmp/caca & ;;
TeleB) rtmpdump -r "rtmp://directe.tvbadalona.cat/live" --playpath "myStream.sdp" -W "http://www.teleb.cat/directe/flowplayer-3.2.5.swf" -p "http://www.teleb.cat/directe/" -q -v -o /tmp/caca & ;;
TV_Girona) rtmpdump -r "rtmp://81.95.0.67:19935/tvgirona" --playpath "directe" -W "http://www.ixac.tv/rtmp/flowplayer.commercial-3.2.5.swf" -p "http://www.ixac.tv/rtmp/tvgirona_Vidal_player_independent_E.html" -q -v -o /tmp/caca & ;;
TVCS) rtmpdump -r "rtmp://188.165.230.206/directo" --playpath "livestream" -W "http://www.tvcs.tv/skins2.3.5/awes/player.swf" -p "http://www.tvcs.tv/endirecto/" -q -v -o /tmp/caca & ;;
Ribera_TV) rtmpdump -r "rtmp://flash3.todostreaming.es/ribera" --playpath "livestream" -W "http://www.todostreaming.es/player_new.swf" -p "http://www.riberatelevisio.com" -q -v -o /tmp/caca & ;;
Telemadrid_SAT) rtmpdump -r "rtmp://cp118140.live.edgefcs.net:1935/live" --playpath "TSAtelemadridsat@47720" -q -v -o /tmp/caca & ;;
Cyl7) rtmpdump -r "rtmp://live2.nice264.com:1935/niceStreamingServer/_definst_/cyl_cyltv_live|rtmp://live1.nice264.com:1935/niceStreamingServer/_definst_/cyl_cyltv_live" -a "niceLiveServer" -W "http://mgmt.nice264.com/swf/jwplayer.swf" -p "http://www.rtvcyl.es/Directo.aspx" -q -v -o /tmp/caca & ;;
Etb_SAT) rtmpdump -r "rtmp://cp70268.live.edgefcs.net/live" --playpath "eitb-ETBSat@5219" -W "http://www.eitb.com/resources/flash/video_playerberria3.swf" -p "http://www.eitb.com/es/television/etb-sat/" -q -v -o /tmp/caca & ;;
TeleBilbao) rtmpdump -r "rtmp://149.11.34.6/live" --playpath "telebilbao.stream" -W "http://www.lasteles.com/js/mediaplayer-5.8/player.swf" -p "http://www.lasteles.com/es/player.php?auto=0&id=14884" -q -v -o /tmp/caca & ;;
Divinity) rtmpdump -r "rtmp://68.68.17.102/live" --playpath "discomaxlacajatv" -W "http://www.udemy.com/static/flash/player5.9.swf" -p "http://www.castamp.com/embed.php?c=discomaxlacajatv&tk=5mD8Tatf&vwidth=650&vheight=400" -q -v -o /tmp/caca & ;;
Discovery_Channel) rtmpdump -r "rtmp://184.173.181.44/live" --playpath "discoverylacajatv?id=14680" -W "http://www.ucaster.eu/static/scripts/eplayer.swf" -p "http://www.ucaster.eu/embedded/discoverylacajatv/1/650/400" -q -o /tmp/caca & ;;
TNT) rtmpdump -r "rtmp://198.105.217.36/live" --playpath "tnt01?id=130713" -W "http://mips.tv/content/scripts/eplayer.swf" -p "http://mips.tv/embedplayer/tnt01/1/650/400" -q -v -o /tmp/caca & ;;
Xtrm) rtmpdump -r "rtmp://93.174.93.58/freelivestreamHD" --playpath "xtrmlacajatv" -W "http://freelivestream.tv/swfs/player.swf" -p "http://freelivestream.tv/embedPlayer.php?file=xtrmlacajatv&width=670&height=400&ckattempt=1" -q -v -o /tmp/caca & ;;
SyFy) rtmpdump -r "rtmp://germany.zcast.info/liveedge" --playpath "syfy-p2X1XuGkY" -W "http://player.zcast.us/player58.swf" -p "http://zcast.us/gen.php?ch=syfy-p2X1XuGkY&width=670&height=400" -q -v -o /tmp/caca & ;;
Cosmo) rtmpdump -r "rtmp://213.163.71.248/freelivestreamHD" --playpath "cosmolacajatv" -W "http://freelivestream.tv/swfs/player.swf" -p "http://freelivestream.tv/embedPlayer.php?file=cosmolacajatv&width=670&height=400" -q -v -o /tmp/caca & ;;
Canal_Extremadura) rtmpdump -r "rtmp://canalextremaduralive.cdn.canalextremadura.es/canalextremaduralive-live/" --playpath "stream001" -W "http://www.canalextremadura.es/sites/all/modules/custom/slx_reproductor/js/mediaplayer-5.7/player.swf" -p "http://www.canalextremadura.es/alacarta/tv/directo" -q -v -o /tmp/caca & ;;
KissTV) rtmpdump -r "rtmp://kisstelevision.es.flash3.glb.ipercast.net/kisstelevision.es-live" --playpath "live" -W "http://kisstelevision.en-directo.com/kisstelevision_avw.swf" -p "http://www.kisstelevision.es" -q -v -o /tmp/caca & ;;
UnaCadiz) rtmpdump -r "rtmp://flash3.todostreaming.es/unatv" --playpath "live" -W "http://www.todostreaming.es/player_new.swf" -p "http://www.unacadiz.tv/directo/" -q -v -o /tmp/caca & ;;
UnaCordoba) rtmpdump -r "rtmp://149.11.34.6/live" --playpath "unacordoba.stream" -W "http://www.lasteles.com/js/mediaplayer-5.8/player.swf" -q -v -o /tmp/caca & ;;
Aragon_TV) rtmpdump -r "rtmp://aragontvlivefs.fplive.net/aragontvlive-live" --playpath "stream_normal_abt" -W "http://alacarta.aragontelevision.es/streamin.g/flowplayercommercial-3.2.7.swf" -p "http://alacarta.aragontelevision.es/streaming/streaming.html" -q -v -o /tmp/caca & ;;
LUX_Mallorca) rtmpdump -r "rtmp://fl1.viastreaming.net/canal37" -W "http://fl1.viastreaming.net:8000/player/player.swf" --playpath "livestream" -p "http://luxmallorca.tv/" -q -v -o /tmp/caca & ;;
RtvCE) rtmpdump -r "rtmp://flash3.todostreaming.es/rtvceuta" --playpath "livestream" -W "http://www.todostreaming.es/player.swf" -p "http://www.rtvce.es/" -q -v -o /tmp/caca & ;;
TVMelilla) rtmpdump -r "rtmp://stream.tvmelilla.es:1935/tvmelilla" --playpath "live" -W "http://www.tvmelilla.es/jwplayer/player.swf" -p "http://www.tvmelilla.es/directo.html" -q -v -o /tmp/caca & ;;
EuroNews_ES) rtmpdump -r "rtmp://fr-par-1.stream-relay.hexaglobe.net:1935/rtpeuronewslive" --playpath "es_video350_flash_all.sdp" -W "http://es.euronews.com/media/player_live_1_14.swf" -p "http://es.euronews.com/noticias/en-directo/" -q -v -o /tmp/caca & ;;
Russian_Today) rtmpdump -r "rtmp://149.11.34.6/live" --playpath "russiantoday.stream" -q -v -o /tmp/caca & ;;
TeleSur) rtmpdump -r "rtmp://149.11.34.6/live" --playpath "telesur.stream" -q -v -o /tmp/caca & ;;
Telebahia) rtmpdump -r "rtmp://62.42.17.93:1935/live" --playpath "Live" -W "http://www.telebahia.tv/player/player.swf" -q -v -o /tmp/caca & ;;
ImasTV) rtmpdump -r "rtmp://149.11.34.6/live" --playpath "imastv.stream" -q -v -o /tmp/caca & ;;
ZaragozaTV) rtmpdump -r "rtmp://149.11.34.6/live" --playpath "ztv.stream" -q -v -o /tmp/caca & ;;
TeleToledo) rtmpdump -r "rtmp://149.11.34.6/live" --playpath "teletoledo.stream" -q -v -o /tmp/caca & ;;
Huelva_CNH) rtmpdump -r "rtmp://149.11.34.6/live" --playpath "cnh.stream" -q -v -o /tmp/caca & ;;
LevanteTV) rtmpdump -r "rtmp://149.11.34.6/live" --playpath "levantetv.stream" -q -v -o /tmp/caca & ;;
InformacionTV) rtmpdump -r "rtmp://149.11.34.6/live" --playpath "informaciontv.stream" -q -v -o /tmp/caca & ;;
PTV_Malaga) rtmpdump -r "rtmp://149.11.34.6/rtplive" --playpath "ptvmalaga.stream" -q -v -o /tmp/caca & ;;
CostadelSol_TV) rtmpdump -r "rtmp://fl0.c80177.cdn.qbrick.com:1935/80177/_definst_" --playpath "20242994" -p "http://www.costadelsoltv.com" -q -v -o /tmp/caca & ;;
M95TV) rtmpdump -r "rtmp://movipbox.streamguys.net:1935/m95tv/" --playpath "m95tv.sdp" -W "http://www.m95tv.es/modules/mod_playerjr/player-licensed5.swf" -p "http://www.m95tv.es" -q -v -o /tmp/caca & ;;
GoticaTV) rtmpdump -r "rtmp://149.11.34.6/live" --playpath "gotica.stream" -q -v -o /tmp/caca & ;;
LobasTV) rtmpdump -r "rtmp://149.11.34.6/live" --playpath "lobas.stream" -q -v -o /tmp/caca & ;;
PartyTV) rtmpdump -r "rtmp://149.11.34.6/live" --playpath "partytv.stream" -q -v -o /tmp/caca & ;;
Unlove) rtmpdump -r "rtmp://149.11.34.6/live" --playpath "unlovechannel.stream" -q -v -o /tmp/caca & ;;
Hispan_TV) rtmpdump -r "rtmp://mtv.fms-01.visionip.tv/live" --playpath "mtv-m_tv-live-25f-4x3-SDh" -W "http://embeddedplayer.visionip.tv/data/swf/8f44869de82046.059e9bf6e623ee1d54965/player.swf" -p "http://www.hispantv.com" -q -v -o /tmp/caca & ;;
Aljazeera_Eng) rtmpdump -r "rtmp://aljazeeraflashlivefs.fplive.net:1935/aljazeeraflashlive-live" --playpath "aljazeera_eng_high" -W "http://admin.brightcove.com/viewer/us20121113.1511/federatedVideoUI/BrightcovePlayer.swf" -p "http://www.aljazeera.com/watch_now/" -q -v -o /tmp/caca & ;;
Esne_TV) rtmpdump -r "rtmp://69.60.121.166/live" --playpath "esne2" -W "http://elsembradorministries.com/esne/ESNE-TV/files/player.swf" -p "http://elsembradorministries.com/esne/ESNE-TV/esnetvenvivo.html" -q -v -o /tmp/caca & ;;
Astrocanalshop) rtmpdump -r "rtmp://flash3.todostreaming.es/telelinea2" -W "http://www.todostreaming.es/player_new.swf" --playpath "mystream" -p "http://www.astrocanalshop.com/streaming.htm" -q -v -o /tmp/caca & ;;
Ondamex) rtmpdump -r "rtmp://stream.visualnetworks.es:1935/str063" --playpath "live" -W "http://ondamex.com/ondamex.swf" -p "http://ondamex.com" -q -v -o /tmp/caca & ;;
Panamericana) rtmpdump -r "rtmp://demo5.iblups.com/demo" --playpath "nm5esQgmkT" -W "http://iblups.com/playertvlive123456789panamericanatv.swf" -p "http://iblups.com/e_panamericanatv-490-320" -q -v -o /tmp/caca & ;;
Global_TV) rtmpdump -r "rtmp://demo13.iblups.com/demo" --playpath "hTWNttHSsq" -W "http://iblups.com/playertvlive123456789globaltv.swf" -p "http://iblups.com/e_globaltv-490-33" -q -v -o /tmp/caca & ;;
ATV_Sur) rtmpdump -r "rtmp://demo.iblups.com/demo" --playpath "yVUQhp8tNL" -W "http://iblups.com/playertvlive123456789.swf" -p "http://iblups.com/e_atvsur-400-330" -q -v -o /tmp/caca & ;;
AricaTV) rtmpdump -a "aricatv/aricatvvivo" -r "rtmp://stream210.digitalproserver.com:443/aricatv/aricatvvivo" --playpath "livestream" -W "http://media.digitalproserver.com/dps_player.swf" -p "http://www.aricatv.com/" -q -v -o /tmp/caca & ;;
Cetelmon_TV) wget --quiet -O /tmp/caca "http://84.232.79.194:8090/cetelmontv.flv" & ;;
SolidariaTV) rtmpdump -r "rtmp://flash3.todostreaming.es/solidariatv" --playpath "mystream" -W "http://www.todostreaming.es/player_new.swf" -p "http://www.solidariatv.com" -q -v -o /tmp/caca & ;;
*) exit ;;
esac
############################## Reproducir el streaming.
LASTPID=$(echo $!)
sleep $CACHE_STREAMING
size=`du /tmp/caca | awk '{ print substr( $0, 0, 2 ) }'`
if [ $KDE -eq 1 ]; then # Si KDE no está arrancado.
if [ 0 -eq $size ]; then
zenity --no-wrap --error --text="No se ha podido establecer comunicación con el servidor de streaming de $CANAL" ;
else
mplayer threads=1 -really-quiet -mc 10 -autosync 30 -cache $CACHE_MPLAYER /tmp/caca ;
zenity --question --text "¿Desea guardar el streaming de video en disco?" ;
case $? in
0) mv /tmp/caca `zenity --file-selection --save` ;;
1) rm /tmp/caca ;;
esac
fi
elif [ $KDE -eq 0 ]; then # Si KDE está arrancado.
if [ 0 -eq $size ]; then
kdialog --title 'Fallo al conectar' --error "No se ha podido establecer comunicación con el servidor de streaming de $CANAL" ;
else
mplayer threads=1 -really-quiet -mc 10 -autosync 30 -cache $CACHE_MPLAYER /tmp/caca ;
kdialog --yesno "¿Desea guardar el streaming de video en disco?" ;
case $? in
0) mv /tmp/caca `kdialog --getsavefilename $HOME` ;;
1) rm /tmp/caca ;;
esac
fi
fi
############################## Desconectamos del canal y arancamos de nuevo el script.
kill -9 $LASTPID
sh $0 &
==============================================================================================================================
#!/usr/bin/env bash
###############################################
# www.TVenLinux.com #
# Actualizado: 28/11/2012 #
# Autor: Busindre (busilezas[@]gmail.com) #
# Programación TV: www.programacion-tdt.com #
###############################################
############################### Configuración.
CACHE_STREAMING=12 # Segundos que estará descargando el streaming de TV antes de empezar a reproducirlo, aumentar los segundos para conexiones lentas.
CACHE_MPLAYER=10000 # Número de Kbytes que usará Mplayer para poder retroceder en la visualización del streaming de TV.
############################### Escritorio KDE.
if [ "$DESKTOP_SESSION" = "KDE" -o "$KDE_FULL_SESSION" = "true" ]; then
KDE=0;
else
KDE=1;
fi
# Si no usamos KDE como escritorio pero está instalado y no queremos usar zenity, descometar esta linea.
#KDE=0
############################### Dependencias (Zenity | Kdialog, mplayer y rtmpdump).
if [ $KDE -eq 1 ]; then
whereis -B "/usr/sbin" "/usr/local/sbin" "/sbin" "/usr/bin" "/usr/local/bin" "/bin" -b zenity | grep -i "/zenity" > /dev/null
zenity=$?
if [ $zenity -eq 1 ]; then
xterm -fa default -fs 12 -bg white -fg black -geometry 75x2 -T "Error" -e "echo 'No se ha podido encontrar el programa "zenity" instalado en su equipo' && sleep 5" ;
exit
fi
else
whereis -B "/usr/sbin" "/usr/local/sbin" "/sbin" "/usr/bin" "/usr/local/bin" "/bin" -b kdialog | grep -i "/kdialog" > /dev/null
kdialog=$?
if [ $kdialog -eq 1 ]; then
xterm -fa default -fs 12 -bg white -fg black -geometry 75x2 -T "Error" -e "echo 'No se ha podido encontrar el programa "kdialog" instalado en su equipo' && sleep 5" ;
exit
fi
fi
whereis -B "/usr/sbin" "/usr/local/sbin" "/sbin" "/usr/bin" "/usr/local/bin" "/bin" -b mplayer | grep -i "/mplayer"> /dev/null
mplayer=$?
if [ $mplayer -eq 1 -a $KDE -eq 1 ]; then
zenity --no-wrap --error --text='No se ha podido encontrar el programa "mplayer" instalado en su equipo' ;
exit
elif [ $mplayer -eq 1 -a $KDE -eq 0 ]; then
kdialog --title 'Dependencia no encontrada' --error 'No se ha podido encontrar el programa "mplayer" instalado en su equipo' ;
exit
fi
whereis -B "/usr/sbin" "/usr/local/sbin" "/sbin" "/usr/bin" "/usr/local/bin" "/bin" -b rtmpdump | grep -i "/rtmpdump" > /dev/null
rtmpdump=$?
if [ $rtmpdump -eq 1 -a $KDE -eq 1 ]; then
zenity --no-wrap --error --text='No se ha podido encontrar el programa "rtmpdump" instalado en su equipo' ;
exit
elif [ $rtmpdump -eq 1 -a $KDE -eq 0 ]; then
kdialog --title 'Dependencia no encontrada' --error 'No se ha podido encontrar el programa "rtmpdump" instalado en su equipo' ;
exit
fi
################################ Curl como dependencia / Programación de cada canal.
whereis -B "/usr/sbin" "/usr/local/sbin" "/sbin" "/usr/bin" "/usr/local/bin" "/bin" -b curl | grep -i "/curl" > /dev/null
curl=$?
if [ $curl -eq 1 -a $KDE -eq 1 ]; then
zenity --no-wrap --warning --timeout=2 --text='No se ha podido encontrar el programa "curl" instalado en su equipo, no podrá visualizar el nombre de los programas en activo' ;
curl=1;
elif [ $curl -eq 1 -a $KDE -eq 0 ]; then
kdialog --warningcontinuecancel 'No se ha podido encontrar el programa "curl" instalado en su equipo, no podrá visualizar el nombre de los programas en activo' ;
curl=1;
else
curl -s http://www.programacion-tdt.com/ahora.php | iconv -t utf-8 -f iso-8859-1 | grep -A 1 -i "<td" | sed -e 's/<td width="250" valign="top">/Canal: /' -e 's/<\/td>/ /' -e 's/<\/tr>/ /' -e 's/<td width="70%"><span class="ind">/Programa: /' -e 's/<\/span> comenzó/ [/' -e 's/minutos/minutos ]/' -e 's/segundos/segundos ]/' -e 's/ //' > /tmp/programacion
curl=0;
fi
grep "Paramount Channel" /tmp/programacion > /dev/null
programacion=$?
if [ $programacion -eq 1 -a $curl -eq 0 -a $KDE -eq 1 ]; then # Si no se encontraron los canales en el fichero pero sí está instalado curl (Fallo al conectar).
zenity --no-wrap --warning --timeout=2 --text='No se ha podido descargar la programación de cada canal' ;
curl=1;
elif [ $programacion -eq 1 -a $curl -eq 0 -a $KDE -eq 0 ]; then
kdialog --warningcontinuecancel 'No se ha podido descargar la programación de cada canal' ;
curl=1;
elif [ $curl -eq 0 ]; then # Si curl está instalado y se ha podido descargar la lista de canales.
AHORA=`date`;
rtve1=`grep -A 1 "TVE1 $" /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
rtve2=`grep -A 1 "La 2 $" /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
tdp=`grep -A 1 "Teledeporte $" /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
Antena_3=`grep -A 1 "Antena 3 $" /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
La_Sexta=`grep -A 1 "La Sexta $" /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
Cuatro=`grep -A 1 "Cuatro $" /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
Tele5=`grep -A 1 "Telecinco $" /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
Xplora=`grep -A 1 "xplora $" /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
Nitro=`grep -A 1 "Nitro $" /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
Neox=`grep -A 1 "A3 Neox $" /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
La_Sexta_3=`grep -A 1 "La Sexta 3 $" /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
Paramount=`grep -A 1 "Paramount Channel $" /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
Intereconomia=`grep -A 1 "Intereconomia TV $" /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
Energy=`grep -A 1 "Energy $" /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
FDF=`grep -A 1 "FDF $" /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
Divinity=`grep -A 1 "Divinity $" /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
GolTV=`grep -A 1 "GolTV $" /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
trecetv=`grep -A 1 "13 TV $" /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
Cyl7=`grep -A 1 "cyl7 $" /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
BarcelonaTV=`grep -A 1 "Barcelona TV $" /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
AragonTV=`grep -A 1 "Aragon Television $" /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
Galicia_TV_AM=`grep -A 1 "Galicia TV America $" /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
TVRioja=`grep -A 1 "TVR $" /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
TPA_a7=`grep -A 1 "TPA a7 $" /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
Andalucia=`grep -A 1 "Canal Sur $" /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
Canal9_24=`grep -A 1 "Noudos $" /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
IB3=`grep -A 1 "IB3 $" /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
TV3=`grep -A 1 "TV3 $" /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
Esport3=`grep -A 1 "Esport3 $" /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
TV3_24=`grep -A 1 "3 24 $" /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
Super3=`grep -A 1 "Canal Super3 $" /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
Intereconomia_Business=" - ";
Canarias_NET=" - ";
Canarias=" - ";
Eldia_TV=" - "
Onda_Azul=" - ";
Ribera_TV=" - "
Telemadrid_SAT=" - ";
Etb_SAT=" - ";
Discovery_Channel=" - ";
TNT=" - ";
Xtrm=" - ";
SyFy=" - ";
Cosmo=" - ";
Galicia_TV_EU=" - "
Canal_33=" - "
Abteve=" - "
KissTV=" - "
UnaCadiz=" - "
EuroNews_ES=" - "
TeleBilbao=" - "
UnaCordoba=" - "
Telebahia=" - "
ImasTV=" - "
ZaragozaTV=" - "
TeleToledo=" - "
Huelva_CNH=" - "
LevanteTV=" - "
InformacionTV=" - "
PTV_Malaga=" - "
CostadelSol_TV=" - "
M95TV=" - "
Russian_Today=" - "
TeleSur=" - "
GoticaTV=" - "
LobasTV=" - "
PartyTV=" - "
Unlove=" - "
Canal_Extremadura=" - "
Aljazeera_Eng=" - "
Esne_TV=" - "
Aragon_TV=" - "
Huelva_TV=" - "
LUX_Mallorca=" - "
Huesca_TV=" - "
TeleB=" - "
TV_Girona=" - "
RtvCE=" - "
TVMelilla=" - "
TVCS=" - "
Astrocanalshop=" - "
Ondamex=" - "
Panamericana=" - "
Global_TV=" - "
ATV_Sur=" - "
AricaTV=" - "
Cetelmon_TV=" - "
SolidariaTV=" - "
Hispan_TV=" - "
fi
############################## Canales.
if [ $curl -eq 0 -a $KDE -eq 1 ]; then
CANAL=`zenity --window-icon="/usr/share/icons/hicolor/48x48/devices/totem-tv.png" --list --title="TDT" --text="Seleccione un canal" --height=500 --width=650 --column="Canales" --column="Emisión $AHORA " "rtve1" "$rtve1" "rtve2" "$rtve2" "tdp" "$tdp" "Antena_3" "$Antena_3" "La_Sexta" "$La_Sexta" "Cuatro" "$Cuatro" "Tele5" "$Tele5" "Xplora" "$Xplora" "Nitro" "$Nitro" "Neox" "$Neox" "La_Sexta_3" "$La_Sexta_3" "Paramount" "$Paramount" "Intereconomia" "$Intereconomia" "Intereconomia_Business" "$Intereconomia_Business" "13TV" "$trecetv" "Energy" "$Energy" "FDF" "$FDF" "EuroNews_ES" "$EuroNews_ES" "Russian_Today" "$Russian_Today" "TeleSur" "$TeleSur" "AragonTV" "$AragonTV" "Galicia_TV_EU" "$Galicia_TV_EU" "Galicia_TV_AM" "$Galicia_TV_AM" "Canarias_NET" "$Canarias_NET" "Canarias" "$Canarias" "Eldia_TV" "$Eldia_TV" "Andalucia" "$Andalucia" "Huelva_TV" "$Huelva_TV" "Abteve" "$Abteve" "TVRioja" "$TVRioja" "TPA_a7" "$TPA_a7" "BarcelonaTV" "$BarcelonaTV" "IB3" "$IB3" "Canal9_24" "$Canal9_24" "Onda_Azul" "$Onda_Azul" "TV3" "$TV3" "TV3_24" "$TV3_24" "Canal_33" "$Canal_33" "Esport3" "$Esport3" "Super3" "$Super3" "TeleB" "$TeleB" "TV_Girona" "$TV_Girona" "TVCS" "$TVCS" "Ribera_TV" "$Ribera_TV" "Telemadrid_SAT" "$Telemadrid_SAT" "Cyl7" "$Cyl7" "Etb_SAT" "$Etb_SAT" "TeleBilbao" "$TeleBilbao" "Divinity" "$Divinity" "Discovery_Channel" "$Discovery_Channel" "TNT" "$TNT" "Xtrm" "$Xtrm" "SyFy" "$SyFy" "Cosmo" "$Cosmo" "UnaCadiz" "$UnaCadiz" "UnaCordoba" "$UnaCordoba" "Telebahia" "$Telebahia" "ImasTV" "$ImasTV" "ZaragozaTV" "$ZaragozaTV" "TeleToledo" "$TeleToledo" "Huelva_CNH" "$Huelva_CNH" "LevanteTV" "$LevanteTV" "InformacionTV" "$InformacionTV" "PTV_Malaga" "$PTV_Malaga" "CostadelSol_TV" "$CostadelSol_TV" "M95TV" "$M95TV" "Canal_Extremadura" "$Canal_Extremadura" "Aragon_TV" "$Aragon_TV" "Huesca_TV" "$Huesca_TV" "LUX_Mallorca" "$LUX_Mallorca" "RtvCE" "$RtvCE" "TVMelilla" "$TVMelilla" "Hispan_TV" "$Hispan_TV" "KissTV" "$KissTV" "GoticaTV" "$GoticaTV" "LobasTV" "$LobasTV" "PartyTV" "$PartyTV" "Unlove" "$Unlove" "Aljazeera_Eng" "$Aljazeera_Eng" "Esne_TV" "$Esne_TV" "Astrocanalshop" "$Astrocanalshop" "Ondamex" "$Ondamex" "Panamericana" "$Panamericana" "Global_TV" "$Global_TV" "ATV_Sur" "$ATV_Sur" "AricaTV" "$AricaTV" "Cetelmon_TV" "$Cetelmon_TV" "SolidariaTV" "$SolidariaTV"`
elif [ $curl -eq 0 -a $KDE -eq 0 ]; then
CANAL=`kdialog --title "TVenLINUX" --geometry 650x600 --menu "Seleccione un canal --- $AHORA" "rtve1" "rtve1 ---> $rtve1" "rtve2" "rtve2 ---> $rtve2" "tdp" "tdp ---> $tdp" "Antena_3" "Antena_3 ---> $Antena_3" "La_Sexta" "La_Sexta ---> $La_Sexta" "Cuatro" "Cuatro ---> $Cuatro" "Tele5" "Tele5 ---> $Tele5" "Xplora" "Xplora ---> $Xplora" "Nitro" "Nitro ---> $Nitro" "Neox" "Neox ---> $Neox" "La_Sexta_3" "La_Sexta_3 ---> $La_Sexta_3" "Paramount" "Paramount ---> $Paramount" "Intereconomia" "Intereconomia ---> $Intereconomia" "Intereconomia_Business" "Intereconomia_Business ---> $Intereconomia_Business" "13TV" "13TV ---> $trecetv" "Energy" "Energy ---> $Energy" "FDF" "FDF ---> $FDF" "EuroNews_ES" "EuroNews_ES ---> $EuroNews_ES" "Russian_Today" "Russian_Today ---> $Russian_Today" "TeleSur" "TeleSur ---> $TeleSur" "AragonTV" "AragonTV ---> $AragonTV" "Galicia_TV_EU" "Galicia_TV_EU ---> $Galicia_TV_EU" "Galicia_TV_AM" "Galicia_TV_AM ---> $Galicia_TV_AM" "Canarias_NET" "Canarias_NET ---> $Canarias_NET" "Canarias" "Canarias ---> $Canarias" "Eldia_TV" "Eldia_TV ---> $Eldia_TV" "Andalucia" "Andalucia ---> $Andalucia" "Huelva_TV" "Huelva_TV ---> $Huelva_TV" "Abteve" "Abteve ---> $Abteve" "TVRioja" "TVRioja ---> $TVRioja" "TPA_a7" "TPA_a7 ---> $TPA_a7" "BarcelonaTV" "BarcelonaTV ---> $BarcelonaTV" "IB3" "IB3 ---> $IB3" "Canal9_24" "Canal9_24 ---> $Canal9_24" "Onda_Azul" "Onda_Azul ---> $Onda_Azul" "TV3" "TV3 ---> $TV3" "TV3_24" "TV3_24 ---> $TV3_24" "Canal_33" "Canal_33 ---> $Canal_33" "Esport3" "Esport3 ---> $Esport3" "Super3" "Super3 ---> $Super3" "TeleB" "TeleB ---> $TeleB" "TV_Girona" "TV_Girona ---> $TV_Girona" "TVCS" "TVCS ---> $TVCS" "Ribera_TV" "Ribera_TVT ---> $Ribera_TV" "Telemadrid_SAT" "Telemadrid_SAT ---> $Telemadrid_SAT" "Cyl7" "Cyl7 ---> $Cyl7" "Etb_SAT" "Etb_SAT ---> $Etb_SAT" "TeleBilbao" "TeleBilbao ---> $TeleBilbao" "Divinity" "Divinity ---> $Divinity" "Discovery_Channel ---> $Discovery_Channel" "TNT" "TNT ---> $TNT" "Xtrm" "Xtrm ---> $Xtrm" "SyFy" "SyFy ---> $SyFy" "Cosmo" "Cosmo ---> $Cosmo" "UnaCadiz" "UnaCadiz ---> $UnaCadiz" "UnaCordoba" "UnaCordoba ---> $UnaCordoba" "Telebahia" "Telebahia ---> $Telebahia" "ImasTV" "ImasTV ---> $ImasTV" "ZaragozaTV" "ZaragozaTV ---> $ZaragozaTV" "TeleToledo" "TeleToledo ---> $TeleToledo" "Huelva_CNH" "Huelva_CNH ---> $Huelva_CNH" "LevanteTV" "LevanteTV ---> $LevanteTV" "InformacionTV" "InformacionTV ---> $InformacionTV" "PTV_Malaga" "PTV_Malaga ---> $PTV_Malaga" "CostadelSol_TV" "CostadelSol_TV ---> $CostadelSol_TV" "M95TV" "M95TV ---> $M95TV" "Canal_Extremadura" "Canal_Extremadura ---> $Canal_Extremadura" "Aragon_TV" "Aragon_TV ---> $Aragon_TV" "Huesca_TV" "Huesca_TV ---> $Huesca_TV" "LUX_Mallorca" "LUX_Mallorca ---> $LUX_Mallorca" "RtvCE" "RtvCE ---> $RtvCE" "TVMelilla" "TVMelilla ---> $TVMelilla" "Hispan_TV" "Hispan_TV ---> $Hispan_TV" "KissTV" "KissTV ---> $KissTV" "GoticaTV" "GoticaTV ---> $GoticaTV" "LobasTV" "LobasTV ---> $LobasTV" "PartyTV" "PartyTV ---> $PartyTV" "Unlove" "Unlove ---> $Unlove" "Aljazeera_Eng" "Aljazeera_Eng ---> $Aljazeera_Eng" "Esne_TV" "Esne_TV ---> $Esne_TV" "Astrocanalshop" "Astrocanalshop ---> $Astrocanalshop" "Ondamex" "Ondamex ---> $Ondamex" "Panamericana" "Panamericana ---> $Panamericana" "Global_TV" "Global_TV ---> $Global_TV" "ATV_Sur" "ATV_Sur ---> $ATV_Sur" "AricaTV" "AricaTV ---> $AricaTV" "Cetelmon_TV" "Cetelmon_TV ---> $Cetelmon_TV" "SolidariaTV" "SolidariaTV ---> $SolidariaTV"`
elif [ $curl -eq 1 -a $KDE -eq 1 ]; then
# Si no se pudo conectar a la programación mostramos este dialogo sin la programación.
CANAL=`zenity --window-icon="/usr/share/icons/hicolor/48x48/devices/totem-tv.png" --list --title="TDT" --text="Seleccione un canal" --height=400 --column="Canales" "rtve1" "rtve2" "tdp" "Antena_3" "La_Sexta" "Cuatro" "Tele5" "Xplora" "Nitro" "Neox" "La_Sexta_3" "Paramount" "Intereconomia" "Intereconomia_Business" "Energy" "FDF" "EuroNews_ES" "Russian_Today" "TeleSur" "AragonTV" "Galicia_TV_EU" "Galicia_TV_AM" "Canarias_NET" "Canarias" "Eldia_TV" "Andalucia" "Huelva_TV" "Abteve" "TVRioja" "TPA_a7" "BarcelonaTV" "IB3" "Canal9_24" "Onda_Azul" "TV3" "TV3_24" "Canal_33" "Esport3" "Super3" "TeleB" "TV_Girona" "TVCS" "Ribera_TV" "Telemadrid_SAT" "Cyl7" "Etb_SAT" "TeleBilbao" "Divinity" "Discovery_Channel" "TNT" "Xtrm" "SyFy" "Cosmo" "UnaCadiz" "UnaCordoba" "Telebahia" "ImasTV" "ZaragozaTV" "TeleToledo" "Huelva_CNH" "LevanteTV" "InformacionTV" "PTV_Malaga" "CostadelSol_TV" "M95TV" "Canal_Extremadura" "Aragon_TV" "Huesca_TV" "LUX_Mallorca" "RtvCE" "TVMelilla" "Hispan_TV" "KissTV" "GoticaTV" "LobasTV" "PartyTV" "Unlove""Aljazeera_Eng" "Esne_TV" "Astrocanalshop" "Ondamex" "Panamericana" "Global_TV" "ATV_Sur" "AricaTV" "Cetelmon_TV" "SolidariaTV"`
elif [ $curl -eq 1 -a $KDE -eq 0 ]; then
CANAL=`kdialog --title "TVenLINUX" --geometry 100x600 --menu "Seleccione un Canal" "rtve1" "rtve1" "rtve2" "rtve2" "tdp" "tdp" "Antena_3" "Antena_3" "La_Sexta" "La_Sexta" "Cuatro" "Cuatro" "Tele5" "Tele5" "Xplora" "Xplora" "Nitro" "Nitro" "Neox" "Neox" "La_Sexta_3" "La_Sexta_3" "Paramount" "Paramount" "Intereconomia" "Intereconomia" "Intereconomia_Business" "Intereconomia_Business" "13TV" "13TV" "Energy" "Energy" "FDF" "FDF" "EuroNews_ES" "EuroNews_ES" "Russian_Today" "Russian_Today" "TeleSur" "TeleSur" "AragonTV" "AragonTV" "Galicia_TV_EU" "Galicia_TV_EU" "Galicia_TV_AM" "Galicia_TV_AM" "Canarias_NET" "Canarias_NET" "Canarias" "Canarias" "Eldia_TV" "Eldia_TV" "Andalucia" "Andalucia" "Huelva_TV" "Huelva_TV" "Abteve" "Abteve" "TVRioja" "TVRioja" "TPA_a7" "TPA_a7" "BarcelonaTV" "BarcelonaTV" "IB3" "IB3" "Canal9_24" "Canal9_24" "Onda_Azul" "Onda_Azul" "TV3" "TV3" "TV3_24" "TV3_24" "Canal_33" "Canal_33" "Esport3" "Esport3" "Super3" "Super3" "TeleB" "TeleB" "TV_Girona" "TV_Girona" "TVCS" "TVCS" "Ribera_TV" "Ribera_TV" "Telemadrid_SAT" "Telemadrid_SAT" "Cyl7" "Cyl7" "Etb_SAT" "Etb_SAT" "TeleBilbao" "TeleBilbao" "Divinity" "Divinity" "Discovery_Channel" "Discovery_Channel" "TNT" "TNT" "Xtrm" "Xtrm" "SyFy" "SyFy" "Cosmo" "Cosmo" "UnaCadiz" "UnaCadiz" "UnaCordoba" "UnaCordoba" "Telebahia" "Telebahia" "ImasTV" "ImasTV" "ZaragozaTV" "ZaragozaTV" "TeleToledo" "TeleToledo" "Huelva_CNH" "Huelva_CNH" "LevanteTV" "LevanteTV" "InformacionTV" "InformacionTV" "PTV_Malaga" "PTV_Malaga" "CostadelSol_TV" "CostadelSol_TV" "M95TV" "M95TV" "Canal_Extremadura" "Canal_Extremadura" "Aragon_TV" "Aragon_TV" "Huesca_TV" "Huesca_TV" "LUX_Mallorca" "LUX_Mallorca" "RtvCE" "RtvCE" "TVMelilla" "TVMelilla" "Hispan_TV" "Hispan_TV" "KissTV" "KissTV" "GoticaTV" "GoticaTV" "LobasTV" "LobasTV" "PartyTV" "PartyTV" "Unlove" "Unlove" "Aljazeera_Eng" "Aljazeera_Eng" "Esne_TV" "Esne_TV" "Astrocanalshop" "Astrocanalshop" "Ondamex" "Ondamex" "Panamericana" "Panamericana" "Global_TV" "Global_TV" "ATV_Sur" "ATV_Sur" "AricaTV" "AricaTV" "Cetelmon_TV" "Cetelmon_TV" "SolidariaTV" "SolidariaTV"`
fi
case $CANAL in
rtve1) rtmpdump -r "rtmp://cp68975.live.edgefcs.net:1935/live" --playpath "LA1_AKA_WEB_NOG@58877" -W "http://www.rtve.es/swf/4.1.11/RTVEPlayerVideo.swf" -p "http://www.rtve.es/noticias/directo-la-1" -t "rtmp://cp68975.live.edgefcs.net:1935/live" -v -q -o /tmp/caca & ;;
rtve2) rtmpdump -r "rtmp://cp68975.live.edgefcs.net:1935/live" --playpath "LA2_AKA_WEB_NOG@60554" -W "http://www.rtve.es/swf/4.1.11/RTVEPlayerVideo.swf" -p "http://www.rtve.es/television/la-2-directo" -t "rtmp://cp68975.live.edgefcs.net:1935/live" -q -v -o /tmp/caca & ;;
tdp) rtmpdump -r "rtmp://cp48772.live.edgefcs.net:1935/live" --playpath "TDP_AKA_WEB_GEO@58884" -W "http://www.rtve.es/swf/4.0.37/RTVEPlayerVideo.swf" -p "http://www.rtve.es/deportes/directo/teledeporte" -q -v -o /tmp/caca & ;;
Antena_3) rtmpdump -r "rtmp://antena3fms35livefs.fplive.net:1935/antena3fms35live-live" --playpath "stream-antena3" -W "http://www.antena3.com/static/swf/A3Player.swf?nocache=200" -p "http://www.antena3.com/directo/" -q -v -o /tmp/caca & ;;
La_Sexta) rtmpdump -r "rtmp://antena3fms35livefs.fplive.net:1935/antena3fms35live-live/stream-lasexta" -W "http://www.antena3.com/static/swf/A3Player.swf" -p "http://www.lasexta.com/directo" -q -v -o /tmp/caca & ;;
Cuatro) rtmpdump -r "rtmp://174.37.222.57/live" --playpath "cuatrolacajatv?id=14756" -W "http://www.ucaster.eu/static/scripts/eplayer.swf" -p "http://www.ucaster.eu/embedded/cuatrolacajatv/1/670/400" -q -v -o /tmp/caca & ;;
Tele5) rtmpdump -r "rtmp://68.68.31.229/live" --playpath "t5hdlacajatv2" -W "http://www.udemy.com/static/flash/player5.9.swf" -p "http://www.castamp.com/embed.php?c=t5hdlacajatv2&vwidth=670&vheight=400" -q -o /tmp/caca & ;;
Xplora) rtmpdump -r "rtmp://antena3fms35geobloqueolivefs.fplive.net:1935/antena3fms35geobloqueolive-live/stream-xplora" -W "http://www.antena3.com/static/swf/A3Player.swf" -p "http://www.lasexta.com/xplora/directo" -q -v -o /tmp/caca & ;;
#ahora no tira
Nitro) rtmpdump -r "rtmp://173.193.242.248/live" --playpath "nitrolacajatv?id=126587" -W "http://mips.tv/content/scripts/eplayer.swf" -p "http://mips.tv/embedplayer/nitrolacajatv/1/670/400" -q -v -o /tmp/caca & ;;
Neox) rtmpdump -r "rtmp://live.zcast.us:1935/liveorigin/_definst_" --playpath "neoxlacaja-lI7mjw6RDa" -W "http://player.zcast.us/player58.swf" -p "http://zcast.us/gen.php?ch=neoxlacaja-lI7mjw6RDa&width=670&height=400" -q -v -o /tmp/caca & ;;
La_Sexta_3) rtmpdump -r "rtmp://174.36.251.140/live/lasexta3lacaja?id=15912" -W "http://www.ucaster.eu/static/scripts/eplayer.swf" -p "http:schuster92.com" -q -o /tmp/caca & ;;
Paramount) rtmpdump -r "rtmp://173.193.46.109/live" --playpath "179582" -W "http://static.castalba.tv/player.swf" -p "http://castalba.tv/embed.php?cid=9947&wh=680&ht=400&r=lacajatv.es" -q -v -o /tmp/caca & ;;
Intereconomia) rtmpdump -r "rtmp://media.intereconomia.com/live/intereconomiatv1" -q -v -o /tmp/caca & ;;
Intereconomia_Business) rtmpdump -r "rtmp://media.intereconomia.com/live" --playpath "business1" -W "ttp://www.intereconomia.com/flowplayer-3.2.5.swf?0.19446.067378316934" -p "http://www.intereconomia.com/ver-intereconomia-business-tv" -q -v -o /tmp/caca & ;;
13TV) rtmpdump -r "rtmp://xiiitvlivefs.fplive.net/xiiitvlive-live" --playpath "stream13tv" -W "http://static.hollybyte.com/public/players/flowplayer/swf/flowplayer.commercial.swf" -p "http://live.13tv.hollybyte.tv/embed/4f33a91894a05f5f49020000" -q -v -o /tmp/caca & ;;
Marca_TV) rtmpdump -r "rtmp://213.163.71.162/directstreamEd" --playpath "marcatv678" -W "http://directstream.us/swfs/player.swf" -p "http://directstream.us/embed.php?file=marcatv678&width=650&height=400" -q -o /tmp/caca & ;;
Energy) rtmpdump -r "rtmp://68.68.31.224/live" --playpath "lacajatvenergy" -W "http://www.udemy.com/static/flash/player5.9.swf" -p "http://www.castamp.com/embed.php?c=lacajatvenergy&vwidth=670&vheight=400" -q -o /tmp/caca & ;;
FDF) rtmpdump -r "rtmp://173.193.223.184/live" --playpath "fdf47?id=137578" -W "http://mips.tv/content/scripts/eplayer.swf" -p "http://mips.tv" -q -v -o /tmp/caca & ;;
AragonTV) rtmpdump -r "rtmp://aragontvlivefs.fplive.net/aragontvlive-live" --playpath "stream_normal_abt" -W "http://alacarta.aragontelevision.es/streaming/flowplayer.commercial-3.2.7.swf" -p "http://alacarta.aragontelevision.es/streaming/streaming.html" -q -v -o /tmp/caca & ;;
Huesca_TV) rtmpdump -r "rtmp://streaming2.radiohuesca.com/live/" -W "http://player.longtailvideo.com/player5.3.swf" --playpath "huescatv" -p "http://www.intertelevision.com/spain/localiatv.php" -v -o /tmp/caca & ;;
Galicia_TV_EU) rtmpdump -r "rtmp://media3.crtvg.es:80/live" --playpath "tvge_2" -W "http://www.crtvg.es/flowplayer3/flowplayer.commercial-3.2.7.swf" -p "http://www.crtvg.es/tvg/tvg-en-directo" -q -v -o /tmp/caca & ;;
Galicia_TV_AM) rtmpdump -r "rtmp://media3.crtvg.es:80/live" --playpath "tvga_2" -W "http://www.crtvg.es/flowplayer3/flowplayer.commercial-3.2.7.swf" -p "http://www.crtvg.es/tvg/tvg-en-directo/canle/galicia-tv-america" -q -v -o /tmp/caca & ;;
Canarias) rtmpdump -r "rtmp://streamrtvc.mad.idec.net/rtvc1" --playpath "rtvc_1.sdp" -W "http://www.rtvc.es/swf/flowplayer.commercial-3.1.5.swf" -p "http://www.rtvc.es/television/enDirecto.aspx?canal=tv" -v -o /tmp/caca & ;;
Canarias_NET) rtmpdump -r "rtmp://streamrtvc.mad.idec.net:1935/rtvcnet/" --playpath "rtvc_net.sdp" -W "http://www.rtvc.es/swf/flowplayer.commercial-3.1.5.swf" -p "http://www.rtvc.es/television/enDirecto.aspx?canal=tv" -q -v -o /tmp/caca & ;;
Eldia_TV) rtmpdump -r "rtmp://teledifusion.tv/dia" --playpath "dia" -W "http://www.eldia.tv/player.swf" -p "http://www.eldia.tv/" -q -v -o /tmp/caca & ;;
TVRioja) rtmpdump -r "rtmp://teledifusion.tv/rioja" --playpath "rioja" -W "http://www.tvr.es/html5/player.swf" -p "http://www.tvr.es/directo.php" -q -v -o /tmp/caca & ;;
TPA_a7) rtmpdump -r "rtmp://teledifusion.tv:1935/asturiastv" --playpath "asturiastvlive" -W "http://www.rtpa.es/jwplayer/player.swf" -p "http://www.rtpa.es/television" -q -v -o /tmp/caca & ;;
Andalucia) wget --quiet -O /tmp/caca http://195.10.10.220/rtva/andaluciatelevisionh264.flv & ;;
Huelva_TV) rtmpdump -r "rtmp://flash3.todostreaming.es/huelvatv" -W "http://www.huelvatv.com/plugins/content/jw_allvideos/includes/js/mediaplayer/player.swf" --playpath "livestream" -p "http://huelvatv.com/index.php/en-directo" -q -v -o /tmp/caca & ;;
Abteve) rtmpdump -r "rtmp://live.cycnet.eu/flvplayback" --playpath "ts_2_68_69" -W "http://www.abteve.com/live/flowplayer/flowplayer-3.2.11.swf" -p "http://www.abteve.com/abteve-on-line.htm" -q -v -o /tmp/caca & ;;
BarcelonaTV) wget --quiet -O /tmp/caca http://195.10.10.207/barcelonatv/barcelonatv-high.flv & ;;
IB3) rtmpdump -r "rtmp://ib3tvlivefs.fplive.net/ib3tvlive-live" --playpath "streamib3" -W "http://ib3cdn.s3.amazonaws.com/player/player.swf" -p "http://ib3tv.com/ib3/player/ib3sat.php" -q -v -o /tmp/caca & ;;
Canal9_24) wget --quiet -O /tmp/caca http://195.10.10.223/rtvv/canal9.flv & ;;
Onda_Azul) rtmpdump -r "rtmp://ondaazullivefs.fplive.net:1935/ondaazullive-live/" --playpath "ondaazullive-stream1" -W "http://www.freeetv.com/script/mediaplayer/player.swf" -p "http://www.waaatch.com/modules.php?name=Video_Stream&page=watch&id=4690" -q -v -o /tmp/caca & ;;
TV3) rtmpdump -r "rtmp://tv-nogeo-flashlivefs.fplive.net/tv-nogeo-flashlive-live" --playpath "stream_TV3CAT_FLV" -W "http://www.tv3.cat/ria/players/3ac/evp/Main.swf" -p "http://www.tv3.cat/directes/" -q -v -o /tmp/caca & ;;
TV3_24) rtmpdump -r "rtmp://tv-nogeo-flashlivefs.fplive.net/tv-nogeo-flashlive-live" --playpath "stream_324_FLV" -W "http://www.tv3.cat/ria/players/3ac/evp/Main.swf" -p "http://www.tv3.cat/directes/" -q -v -o /tmp/caca & ;;
Canal_33) rtmpdump -r "rtmp://tv-nogeo-flashlivefs.fplive.net/tv-nogeo-flashlive-live" --playpath "stream_33D_FLV" -W "http://www.tv3.cat/ria/players/3ac/evp/Main.swf" -p "http://www.tv3.cat/directes/" -q -v -o /tmp/caca & ;;
Esport3) rtmpdump -r "rtmp://tv-nogeo-flashlivefs.fplive.net/tv-nogeo-flashlive-live" --playpath "stream_ES3_FLV" -W "http://www.tv3.cat/ria/players/3ac/evp/Main.swf" -p "http://www.tv3.cat/directes/" -q -v -o /tmp/caca & ;;
Super3) rtmpdump -r "rtmp://tv-nogeo-flashlivefs.fplive.net/tv-nogeo-flashlive-live" --playpath "stream_33D_FLV" -W "http://www.tv3.cat/ria/players/3ac/evp/Main.swf" -p "http://www.tv3.cat/3alacarta/#/directes/SUPER3" -q -v -o /tmp/caca & ;;
TeleB) rtmpdump -r "rtmp://directe.tvbadalona.cat/live" --playpath "myStream.sdp" -W "http://www.teleb.cat/directe/flowplayer-3.2.5.swf" -p "http://www.teleb.cat/directe/" -q -v -o /tmp/caca & ;;
TV_Girona) rtmpdump -r "rtmp://81.95.0.67:19935/tvgirona" --playpath "directe" -W "http://www.ixac.tv/rtmp/flowplayer.commercial-3.2.5.swf" -p "http://www.ixac.tv/rtmp/tvgirona_Vidal_player_independent_E.html" -q -v -o /tmp/caca & ;;
TVCS) rtmpdump -r "rtmp://188.165.230.206/directo" --playpath "livestream" -W "http://www.tvcs.tv/skins2.3.5/awes/player.swf" -p "http://www.tvcs.tv/endirecto/" -q -v -o /tmp/caca & ;;
Ribera_TV) rtmpdump -r "rtmp://flash3.todostreaming.es/ribera" --playpath "livestream" -W "http://www.todostreaming.es/player_new.swf" -p "http://www.riberatelevisio.com" -q -v -o /tmp/caca & ;;
Telemadrid_SAT) rtmpdump -r "rtmp://cp118140.live.edgefcs.net:1935/live" --playpath "TSAtelemadridsat@47720" -q -v -o /tmp/caca & ;;
Cyl7) rtmpdump -r "rtmp://live2.nice264.com:1935/niceStreamingServer/_definst_/cyl_cyltv_live|rtmp://live1.nice264.com:1935/niceStreamingServer/_definst_/cyl_cyltv_live" -a "niceLiveServer" -W "http://mgmt.nice264.com/swf/jwplayer.swf" -p "http://www.rtvcyl.es/Directo.aspx" -q -v -o /tmp/caca & ;;
Etb_SAT) rtmpdump -r "rtmp://cp70268.live.edgefcs.net/live" --playpath "eitb-ETBSat@5219" -W "http://www.eitb.com/resources/flash/video_playerberria3.swf" -p "http://www.eitb.com/es/television/etb-sat/" -q -v -o /tmp/caca & ;;
TeleBilbao) rtmpdump -r "rtmp://149.11.34.6/live" --playpath "telebilbao.stream" -W "http://www.lasteles.com/js/mediaplayer-5.8/player.swf" -p "http://www.lasteles.com/es/player.php?auto=0&id=14884" -q -v -o /tmp/caca & ;;
Divinity) rtmpdump -r "rtmp://68.68.17.102/live" --playpath "discomaxlacajatv" -W "http://www.udemy.com/static/flash/player5.9.swf" -p "http://www.castamp.com/embed.php?c=discomaxlacajatv&tk=5mD8Tatf&vwidth=650&vheight=400" -q -v -o /tmp/caca & ;;
Discovery_Channel) rtmpdump -r "rtmp://184.173.181.44/live" --playpath "discoverylacajatv?id=14680" -W "http://www.ucaster.eu/static/scripts/eplayer.swf" -p "http://www.ucaster.eu/embedded/discoverylacajatv/1/650/400" -q -o /tmp/caca & ;;
TNT) rtmpdump -r "rtmp://198.105.217.36/live" --playpath "tnt01?id=130713" -W "http://mips.tv/content/scripts/eplayer.swf" -p "http://mips.tv/embedplayer/tnt01/1/650/400" -q -v -o /tmp/caca & ;;
Xtrm) rtmpdump -r "rtmp://93.174.93.58/freelivestreamHD" --playpath "xtrmlacajatv" -W "http://freelivestream.tv/swfs/player.swf" -p "http://freelivestream.tv/embedPlayer.php?file=xtrmlacajatv&width=670&height=400&ckattempt=1" -q -v -o /tmp/caca & ;;
SyFy) rtmpdump -r "rtmp://germany.zcast.info/liveedge" --playpath "syfy-p2X1XuGkY" -W "http://player.zcast.us/player58.swf" -p "http://zcast.us/gen.php?ch=syfy-p2X1XuGkY&width=670&height=400" -q -v -o /tmp/caca & ;;
Cosmo) rtmpdump -r "rtmp://213.163.71.248/freelivestreamHD" --playpath "cosmolacajatv" -W "http://freelivestream.tv/swfs/player.swf" -p "http://freelivestream.tv/embedPlayer.php?file=cosmolacajatv&width=670&height=400" -q -v -o /tmp/caca & ;;
Canal_Extremadura) rtmpdump -r "rtmp://canalextremaduralive.cdn.canalextremadura.es/canalextremaduralive-live/" --playpath "stream001" -W "http://www.canalextremadura.es/sites/all/modules/custom/slx_reproductor/js/mediaplayer-5.7/player.swf" -p "http://www.canalextremadura.es/alacarta/tv/directo" -q -v -o /tmp/caca & ;;
KissTV) rtmpdump -r "rtmp://kisstelevision.es.flash3.glb.ipercast.net/kisstelevision.es-live" --playpath "live" -W "http://kisstelevision.en-directo.com/kisstelevision_avw.swf" -p "http://www.kisstelevision.es" -q -v -o /tmp/caca & ;;
UnaCadiz) rtmpdump -r "rtmp://flash3.todostreaming.es/unatv" --playpath "live" -W "http://www.todostreaming.es/player_new.swf" -p "http://www.unacadiz.tv/directo/" -q -v -o /tmp/caca & ;;
UnaCordoba) rtmpdump -r "rtmp://149.11.34.6/live" --playpath "unacordoba.stream" -W "http://www.lasteles.com/js/mediaplayer-5.8/player.swf" -q -v -o /tmp/caca & ;;
Aragon_TV) rtmpdump -r "rtmp://aragontvlivefs.fplive.net/aragontvlive-live" --playpath "stream_normal_abt" -W "http://alacarta.aragontelevision.es/streamin.g/flowplayercommercial-3.2.7.swf" -p "http://alacarta.aragontelevision.es/streaming/streaming.html" -q -v -o /tmp/caca & ;;
LUX_Mallorca) rtmpdump -r "rtmp://fl1.viastreaming.net/canal37" -W "http://fl1.viastreaming.net:8000/player/player.swf" --playpath "livestream" -p "http://luxmallorca.tv/" -q -v -o /tmp/caca & ;;
RtvCE) rtmpdump -r "rtmp://flash3.todostreaming.es/rtvceuta" --playpath "livestream" -W "http://www.todostreaming.es/player.swf" -p "http://www.rtvce.es/" -q -v -o /tmp/caca & ;;
TVMelilla) rtmpdump -r "rtmp://stream.tvmelilla.es:1935/tvmelilla" --playpath "live" -W "http://www.tvmelilla.es/jwplayer/player.swf" -p "http://www.tvmelilla.es/directo.html" -q -v -o /tmp/caca & ;;
EuroNews_ES) rtmpdump -r "rtmp://fr-par-1.stream-relay.hexaglobe.net:1935/rtpeuronewslive" --playpath "es_video350_flash_all.sdp" -W "http://es.euronews.com/media/player_live_1_14.swf" -p "http://es.euronews.com/noticias/en-directo/" -q -v -o /tmp/caca & ;;
Russian_Today) rtmpdump -r "rtmp://149.11.34.6/live" --playpath "russiantoday.stream" -q -v -o /tmp/caca & ;;
TeleSur) rtmpdump -r "rtmp://149.11.34.6/live" --playpath "telesur.stream" -q -v -o /tmp/caca & ;;
Telebahia) rtmpdump -r "rtmp://62.42.17.93:1935/live" --playpath "Live" -W "http://www.telebahia.tv/player/player.swf" -q -v -o /tmp/caca & ;;
ImasTV) rtmpdump -r "rtmp://149.11.34.6/live" --playpath "imastv.stream" -q -v -o /tmp/caca & ;;
ZaragozaTV) rtmpdump -r "rtmp://149.11.34.6/live" --playpath "ztv.stream" -q -v -o /tmp/caca & ;;
TeleToledo) rtmpdump -r "rtmp://149.11.34.6/live" --playpath "teletoledo.stream" -q -v -o /tmp/caca & ;;
Huelva_CNH) rtmpdump -r "rtmp://149.11.34.6/live" --playpath "cnh.stream" -q -v -o /tmp/caca & ;;
LevanteTV) rtmpdump -r "rtmp://149.11.34.6/live" --playpath "levantetv.stream" -q -v -o /tmp/caca & ;;
InformacionTV) rtmpdump -r "rtmp://149.11.34.6/live" --playpath "informaciontv.stream" -q -v -o /tmp/caca & ;;
PTV_Malaga) rtmpdump -r "rtmp://149.11.34.6/rtplive" --playpath "ptvmalaga.stream" -q -v -o /tmp/caca & ;;
CostadelSol_TV) rtmpdump -r "rtmp://fl0.c80177.cdn.qbrick.com:1935/80177/_definst_" --playpath "20242994" -p "http://www.costadelsoltv.com" -q -v -o /tmp/caca & ;;
M95TV) rtmpdump -r "rtmp://movipbox.streamguys.net:1935/m95tv/" --playpath "m95tv.sdp" -W "http://www.m95tv.es/modules/mod_playerjr/player-licensed5.swf" -p "http://www.m95tv.es" -q -v -o /tmp/caca & ;;
GoticaTV) rtmpdump -r "rtmp://149.11.34.6/live" --playpath "gotica.stream" -q -v -o /tmp/caca & ;;
LobasTV) rtmpdump -r "rtmp://149.11.34.6/live" --playpath "lobas.stream" -q -v -o /tmp/caca & ;;
PartyTV) rtmpdump -r "rtmp://149.11.34.6/live" --playpath "partytv.stream" -q -v -o /tmp/caca & ;;
Unlove) rtmpdump -r "rtmp://149.11.34.6/live" --playpath "unlovechannel.stream" -q -v -o /tmp/caca & ;;
Hispan_TV) rtmpdump -r "rtmp://mtv.fms-01.visionip.tv/live" --playpath "mtv-m_tv-live-25f-4x3-SDh" -W "http://embeddedplayer.visionip.tv/data/swf/8f44869de82046.059e9bf6e623ee1d54965/player.swf" -p "http://www.hispantv.com" -q -v -o /tmp/caca & ;;
Aljazeera_Eng) rtmpdump -r "rtmp://aljazeeraflashlivefs.fplive.net:1935/aljazeeraflashlive-live" --playpath "aljazeera_eng_high" -W "http://admin.brightcove.com/viewer/us20121113.1511/federatedVideoUI/BrightcovePlayer.swf" -p "http://www.aljazeera.com/watch_now/" -q -v -o /tmp/caca & ;;
Esne_TV) rtmpdump -r "rtmp://69.60.121.166/live" --playpath "esne2" -W "http://elsembradorministries.com/esne/ESNE-TV/files/player.swf" -p "http://elsembradorministries.com/esne/ESNE-TV/esnetvenvivo.html" -q -v -o /tmp/caca & ;;
Astrocanalshop) rtmpdump -r "rtmp://flash3.todostreaming.es/telelinea2" -W "http://www.todostreaming.es/player_new.swf" --playpath "mystream" -p "http://www.astrocanalshop.com/streaming.htm" -q -v -o /tmp/caca & ;;
Ondamex) rtmpdump -r "rtmp://stream.visualnetworks.es:1935/str063" --playpath "live" -W "http://ondamex.com/ondamex.swf" -p "http://ondamex.com" -q -v -o /tmp/caca & ;;
Panamericana) rtmpdump -r "rtmp://demo5.iblups.com/demo" --playpath "nm5esQgmkT" -W "http://iblups.com/playertvlive123456789panamericanatv.swf" -p "http://iblups.com/e_panamericanatv-490-320" -q -v -o /tmp/caca & ;;
Global_TV) rtmpdump -r "rtmp://demo13.iblups.com/demo" --playpath "hTWNttHSsq" -W "http://iblups.com/playertvlive123456789globaltv.swf" -p "http://iblups.com/e_globaltv-490-33" -q -v -o /tmp/caca & ;;
ATV_Sur) rtmpdump -r "rtmp://demo.iblups.com/demo" --playpath "yVUQhp8tNL" -W "http://iblups.com/playertvlive123456789.swf" -p "http://iblups.com/e_atvsur-400-330" -q -v -o /tmp/caca & ;;
AricaTV) rtmpdump -a "aricatv/aricatvvivo" -r "rtmp://stream210.digitalproserver.com:443/aricatv/aricatvvivo" --playpath "livestream" -W "http://media.digitalproserver.com/dps_player.swf" -p "http://www.aricatv.com/" -q -v -o /tmp/caca & ;;
Cetelmon_TV) wget --quiet -O /tmp/caca "http://84.232.79.194:8090/cetelmontv.flv" & ;;
SolidariaTV) rtmpdump -r "rtmp://flash3.todostreaming.es/solidariatv" --playpath "mystream" -W "http://www.todostreaming.es/player_new.swf" -p "http://www.solidariatv.com" -q -v -o /tmp/caca & ;;
*) exit ;;
esac
############################## Reproducir el streaming.
LASTPID=$(echo $!)
sleep $CACHE_STREAMING
size=`du /tmp/caca | awk '{ print substr( $0, 0, 2 ) }'`
if [ $KDE -eq 1 ]; then # Si KDE no está arrancado.
if [ 0 -eq $size ]; then
zenity --no-wrap --error --text="No se ha podido establecer comunicación con el servidor de streaming de $CANAL" ;
else
mplayer threads=1 -really-quiet -mc 10 -autosync 30 -cache $CACHE_MPLAYER /tmp/caca ;
zenity --question --text "¿Desea guardar el streaming de video en disco?" ;
case $? in
0) mv /tmp/caca `zenity --file-selection --save` ;;
1) rm /tmp/caca ;;
esac
fi
elif [ $KDE -eq 0 ]; then # Si KDE está arrancado.
if [ 0 -eq $size ]; then
kdialog --title 'Fallo al conectar' --error "No se ha podido establecer comunicación con el servidor de streaming de $CANAL" ;
else
mplayer threads=1 -really-quiet -mc 10 -autosync 30 -cache $CACHE_MPLAYER /tmp/caca ;
kdialog --yesno "¿Desea guardar el streaming de video en disco?" ;
case $? in
0) mv /tmp/caca `kdialog --getsavefilename $HOME` ;;
1) rm /tmp/caca ;;
esac
fi
fi
############################## Desconectamos del canal y arancamos de nuevo el script.
kill -9 $LASTPID
sh $0 &