daily pastebin goal
66%
SHARE
TWEET

TV en Linux

a guest Nov 29th, 2012 104 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/usr/bin/env bash
  2.  
  3. #http://www.tvenlinux.com/
  4.  
  5. ###############################################
  6. #              www.TVenLinux.com              #
  7. #           Actualizado: 28/11/2012           #
  8. #   Autor: Busindre (busilezas[@]gmail.com)   #
  9. #  Programación TV: www.programacion-tdt.com  #
  10. ###############################################
  11.  
  12. ############################### Configuración.
  13.  
  14. CACHE_STREAMING=12 # Segundos que estará descargando el streaming de TV antes de empezar a reproducirlo, aumentar los segundos para conexiones lentas.
  15. CACHE_MPLAYER=10000 # Número de Kbytes que usará Mplayer para poder retroceder en la visualización del streaming de TV.
  16.  
  17. ############################### Escritorio KDE.
  18.  
  19. if [ "$DESKTOP_SESSION" = "KDE" -o "$KDE_FULL_SESSION" = "true" ]; then
  20.     KDE=0;
  21. else
  22.     KDE=1;
  23. fi
  24.  
  25. # Si no usamos KDE como escritorio pero está instalado y no queremos usar zenity, descometar esta linea.
  26. #KDE=0
  27.  
  28. ############################### Dependencias (Zenity | Kdialog, mplayer y rtmpdump).
  29.  
  30. if [ $KDE -eq 1 ]; then
  31.     whereis -B "/usr/sbin" "/usr/local/sbin" "/sbin" "/usr/bin" "/usr/local/bin" "/bin" -b zenity | grep -i "/zenity" > /dev/null
  32.     zenity=$?
  33.     if [ $zenity -eq 1 ]; then
  34.         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" ;
  35.         exit
  36.     fi
  37.  
  38. else
  39.     whereis -B "/usr/sbin" "/usr/local/sbin" "/sbin" "/usr/bin" "/usr/local/bin" "/bin" -b kdialog | grep -i "/kdialog" > /dev/null
  40.     kdialog=$?
  41.     if [ $kdialog -eq 1 ]; then
  42.         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" ;
  43.         exit
  44.     fi
  45. fi
  46.  
  47.  
  48.  
  49. whereis -B "/usr/sbin" "/usr/local/sbin" "/sbin" "/usr/bin" "/usr/local/bin" "/bin" -b mplayer | grep -i "/mplayer"> /dev/null
  50. mplayer=$?
  51. if [ $mplayer -eq 1 -a $KDE -eq 1 ]; then
  52.     zenity --no-wrap --error --text='No se ha podido encontrar el programa "mplayer" instalado en su equipo' ;
  53.     exit
  54. elif [ $mplayer -eq 1 -a $KDE -eq 0 ]; then
  55.     kdialog --title 'Dependencia no encontrada' --error 'No se ha podido encontrar el programa "mplayer" instalado en su equipo' ;
  56.     exit
  57. fi
  58.  
  59.  
  60.  
  61. whereis -B "/usr/sbin" "/usr/local/sbin" "/sbin" "/usr/bin" "/usr/local/bin" "/bin" -b rtmpdump | grep -i "/rtmpdump" > /dev/null
  62. rtmpdump=$?
  63. if [ $rtmpdump -eq 1  -a $KDE -eq 1 ]; then
  64.     zenity --no-wrap --error --text='No se ha podido encontrar el programa "rtmpdump" instalado en su equipo' ;
  65.     exit
  66. elif [ $rtmpdump -eq 1  -a $KDE -eq 0 ]; then
  67.     kdialog --title 'Dependencia no encontrada' --error 'No se ha podido encontrar el programa "rtmpdump" instalado en su equipo' ;
  68.     exit
  69. fi
  70.  
  71.  
  72. ################################ Curl como dependencia / Programación de cada canal.
  73.  
  74. whereis -B "/usr/sbin" "/usr/local/sbin" "/sbin" "/usr/bin" "/usr/local/bin" "/bin" -b curl | grep -i "/curl" > /dev/null
  75. curl=$?
  76. if [ $curl -eq 1 -a $KDE -eq 1 ]; then
  77.     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' ;
  78.     curl=1;
  79.  
  80. elif [ $curl -eq 1 -a $KDE -eq 0 ]; then
  81.  
  82.     kdialog --warningcontinuecancel 'No se ha podido encontrar el programa "curl" instalado en su equipo, no podrá visualizar el nombre de los programas en activo' ;
  83.     curl=1;
  84.  
  85. else
  86.     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
  87.     curl=0;
  88. fi
  89.  
  90.  
  91.  
  92. grep "Paramount Channel" /tmp/programacion > /dev/null
  93. programacion=$?
  94. 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).
  95.     zenity --no-wrap --warning --timeout=2 --text='No se ha podido descargar la programación de cada canal' ;
  96.     curl=1;
  97.  
  98. elif [ $programacion -eq 1 -a $curl -eq 0 -a $KDE -eq 0 ]; then
  99.     kdialog --warningcontinuecancel 'No se ha podido descargar la programación de cada canal' ;
  100.     curl=1;
  101.  
  102.  
  103. elif [ $curl -eq 0 ]; then  # Si curl está instalado y se ha podido descargar la lista de canales.
  104.  
  105.     AHORA=`date`;
  106.  
  107.     rtve1=`grep -A 1 "TVE1 $" /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
  108.     rtve2=`grep -A 1 "La 2 $" /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
  109.     tdp=`grep -A 1 "Teledeporte $" /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
  110.     Antena_3=`grep -A 1 "Antena 3 $" /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
  111.     La_Sexta=`grep -A 1 "La Sexta $" /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
  112.     Cuatro=`grep -A 1 "Cuatro $" /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
  113.     Tele5=`grep -A 1 "Telecinco $" /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
  114.     Xplora=`grep -A 1 "xplora $" /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
  115.     Nitro=`grep -A 1 "Nitro $" /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
  116.     Neox=`grep -A 1 "A3 Neox $" /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
  117.     La_Sexta_3=`grep -A 1 "La Sexta 3 $" /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
  118.     Paramount=`grep -A 1 "Paramount Channel $" /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
  119.     Intereconomia=`grep -A 1 "Intereconomia TV $" /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
  120.     Energy=`grep -A 1 "Energy $" /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
  121.     FDF=`grep -A 1 "FDF $" /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
  122.     Divinity=`grep -A 1 "Divinity $" /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
  123.     GolTV=`grep -A 1 "GolTV $" /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
  124.     trecetv=`grep -A 1 "13 TV $" /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
  125.     Cyl7=`grep -A 1 "cyl7 $" /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
  126.     BarcelonaTV=`grep -A 1 "Barcelona TV $" /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
  127.     AragonTV=`grep -A 1 "Aragon Television $" /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
  128.     Galicia_TV_AM=`grep -A 1 "Galicia TV America $" /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
  129.     TVRioja=`grep -A 1 "TVR $" /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
  130.     TPA_a7=`grep -A 1 "TPA a7 $" /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
  131.     Andalucia=`grep -A 1 "Canal Sur $" /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
  132.     Canal9_24=`grep -A 1 "Noudos $" /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
  133.     IB3=`grep -A 1 "IB3 $" /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
  134.     TV3=`grep -A 1 "TV3 $" /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
  135.     Esport3=`grep -A 1 "Esport3 $" /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
  136.     TV3_24=`grep -A 1 "3 24 $" /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
  137.     Super3=`grep -A 1 "Canal Super3 $" /tmp/programacion | grep -i Programa | sed -e 's/Programa://'`
  138.  
  139.     Intereconomia_Business=" - ";
  140.     Canarias_NET=" - ";
  141.     Canarias=" - ";
  142.     Eldia_TV=" - "
  143.     Onda_Azul=" - ";
  144.     Ribera_TV=" - "
  145.     Telemadrid_SAT=" - ";
  146.     Etb_SAT=" - ";
  147.     Discovery_Channel=" - ";
  148.     TNT=" - ";
  149.     Xtrm=" - ";
  150.     SyFy=" - ";
  151.     Cosmo=" - ";
  152.     Galicia_TV_EU=" - "
  153.     Canal_33=" - "
  154.     Abteve=" - "
  155.     KissTV=" - "
  156.     UnaCadiz=" - "
  157.     EuroNews_ES=" - "
  158.     TeleBilbao=" - "
  159.     UnaCordoba=" - "
  160.     Telebahia=" - "
  161.     ImasTV=" - "
  162.     ZaragozaTV=" - "
  163.     TeleToledo=" - "
  164.     Huelva_CNH=" - "
  165.     LevanteTV=" - "
  166.     InformacionTV=" - "
  167.     PTV_Malaga=" - "
  168.     CostadelSol_TV=" - "
  169.     M95TV=" - "
  170.     Russian_Today=" - "
  171.     TeleSur=" - "
  172.     GoticaTV=" - "
  173.     LobasTV=" - "
  174.     PartyTV=" - "
  175.     Unlove=" - "
  176.     Canal_Extremadura=" - "
  177.     Aljazeera_Eng=" - "
  178.     Esne_TV=" - "
  179.     Aragon_TV=" - "
  180.     Huelva_TV=" - "
  181.     LUX_Mallorca=" - "
  182.     Huesca_TV=" - "
  183.     TeleB=" - "
  184.     TV_Girona=" - "
  185.     RtvCE=" - "
  186.     TVMelilla=" - "
  187.     TVCS=" - "
  188.     Astrocanalshop=" - "
  189.     Ondamex=" - "
  190.     Panamericana=" - "
  191.     Global_TV=" - "
  192.     ATV_Sur=" - "
  193.     AricaTV=" - "
  194.     Cetelmon_TV=" - "
  195.     SolidariaTV=" - "
  196.     Hispan_TV=" - "
  197. fi
  198.  
  199.  
  200. ############################## Canales.
  201.  
  202. if [ $curl -eq 0  -a $KDE -eq 1 ]; then
  203.     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"`
  204.  
  205. elif [ $curl -eq 0  -a $KDE -eq 0 ]; then
  206.     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"`
  207.  
  208.  
  209.  
  210.  
  211. elif [ $curl -eq 1  -a $KDE -eq 1 ]; then
  212.    
  213.     # Si no se pudo conectar a la programación mostramos este dialogo sin la programación.
  214.     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"`
  215.  
  216. elif [ $curl -eq 1  -a $KDE -eq 0 ]; then
  217.    
  218.     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"`
  219.  
  220.  
  221. fi
  222.  
  223. case $CANAL in
  224.  
  225.     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 & ;;
  226.  
  227.     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 & ;;
  228.  
  229.     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 & ;;
  230.  
  231.     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 & ;;
  232.  
  233.     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 & ;;
  234.  
  235.     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 & ;;
  236.  
  237.     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 & ;;
  238.  
  239.  
  240.     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 & ;;
  241.  
  242. #ahora no tira
  243.     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 & ;;
  244.  
  245.     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 & ;;
  246.  
  247.  
  248.     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 & ;;
  249.     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 & ;;
  250.  
  251.     Intereconomia) rtmpdump -r "rtmp://media.intereconomia.com/live/intereconomiatv1" -q -v -o /tmp/caca & ;;
  252.  
  253.     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 & ;;
  254.  
  255.     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 & ;;
  256.  
  257.     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 & ;;
  258.  
  259.     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 & ;;
  260.  
  261.     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 & ;;
  262.  
  263.     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 & ;;
  264.  
  265.     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 & ;;
  266.  
  267.     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 & ;;
  268.  
  269.     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  & ;;
  270.  
  271.     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 & ;;
  272.  
  273.     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 & ;;
  274.  
  275.     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 & ;;
  276.  
  277.     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 & ;;
  278.  
  279.     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 & ;;
  280.  
  281.     Andalucia) wget --quiet -O /tmp/caca http://195.10.10.220/rtva/andaluciatelevisionh264.flv & ;;
  282.  
  283.     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 & ;;
  284.  
  285.     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 & ;;
  286.  
  287.     BarcelonaTV) wget --quiet -O /tmp/caca http://195.10.10.207/barcelonatv/barcelonatv-high.flv & ;;
  288.    
  289.     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  & ;;
  290.  
  291.     Canal9_24) wget --quiet -O /tmp/caca http://195.10.10.223/rtvv/canal9.flv & ;;
  292.  
  293.     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 & ;;
  294.  
  295.     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 & ;;
  296.  
  297.     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 & ;;
  298.  
  299.     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 & ;;
  300.  
  301.     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 & ;;
  302.  
  303.     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 & ;;
  304.  
  305.     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 & ;;
  306.  
  307.     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 & ;;
  308.  
  309.     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 & ;;
  310.  
  311.     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 & ;;
  312.  
  313.     Telemadrid_SAT) rtmpdump -r "rtmp://cp118140.live.edgefcs.net:1935/live" --playpath "TSAtelemadridsat@47720" -q -v -o /tmp/caca & ;;
  314.  
  315.     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 & ;;
  316.  
  317.     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 & ;;
  318.  
  319.     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 & ;;
  320.  
  321.     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 & ;;
  322.  
  323.     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 & ;;
  324.  
  325.     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 & ;;
  326.  
  327.     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 & ;;
  328.  
  329.     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 & ;;
  330.  
  331.     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 & ;;
  332.  
  333.     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 & ;;
  334.  
  335.     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 & ;;
  336.  
  337.     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 & ;;
  338.  
  339.     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 & ;;
  340.  
  341.     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 & ;;
  342.  
  343.     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 & ;;
  344.  
  345.  
  346.     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 & ;;
  347.  
  348.     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 & ;;
  349.  
  350.     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 & ;;
  351.  
  352.     Russian_Today) rtmpdump -r "rtmp://149.11.34.6/live" --playpath "russiantoday.stream" -q -v -o /tmp/caca & ;;
  353.  
  354.     TeleSur) rtmpdump -r "rtmp://149.11.34.6/live" --playpath "telesur.stream" -q -v -o /tmp/caca & ;;
  355.  
  356.     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 & ;;
  357.  
  358.     ImasTV) rtmpdump -r "rtmp://149.11.34.6/live" --playpath "imastv.stream" -q -v -o /tmp/caca & ;;
  359.    
  360.     ZaragozaTV) rtmpdump -r "rtmp://149.11.34.6/live" --playpath "ztv.stream" -q -v -o /tmp/caca & ;;
  361.    
  362.     TeleToledo) rtmpdump -r "rtmp://149.11.34.6/live" --playpath "teletoledo.stream" -q -v -o /tmp/caca & ;;
  363.  
  364.     Huelva_CNH) rtmpdump -r "rtmp://149.11.34.6/live" --playpath "cnh.stream" -q -v -o /tmp/caca & ;;
  365.  
  366.     LevanteTV) rtmpdump -r "rtmp://149.11.34.6/live" --playpath "levantetv.stream" -q -v -o /tmp/caca & ;;  
  367.  
  368.     InformacionTV) rtmpdump -r "rtmp://149.11.34.6/live" --playpath "informaciontv.stream" -q -v -o /tmp/caca & ;;
  369.  
  370.     PTV_Malaga) rtmpdump -r "rtmp://149.11.34.6/rtplive" --playpath "ptvmalaga.stream" -q -v -o /tmp/caca & ;;
  371.    
  372.     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  & ;;
  373.  
  374.     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 & ;;
  375.  
  376.     GoticaTV) rtmpdump -r "rtmp://149.11.34.6/live" --playpath "gotica.stream" -q -v -o /tmp/caca & ;;
  377.  
  378.     LobasTV) rtmpdump -r "rtmp://149.11.34.6/live" --playpath "lobas.stream" -q -v -o /tmp/caca & ;;
  379.  
  380.     PartyTV) rtmpdump -r "rtmp://149.11.34.6/live" --playpath "partytv.stream" -q -v -o /tmp/caca & ;;
  381.  
  382.     Unlove) rtmpdump -r "rtmp://149.11.34.6/live" --playpath "unlovechannel.stream" -q -v -o /tmp/caca & ;;
  383.  
  384.     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 & ;;
  385.  
  386.     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 & ;;
  387.  
  388.     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 & ;;
  389.  
  390.     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 & ;;
  391.  
  392.     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 & ;;
  393.  
  394.     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 & ;;
  395.  
  396.     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 & ;;
  397.  
  398.     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 & ;;
  399.  
  400.     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 & ;;
  401.  
  402.     Cetelmon_TV) wget --quiet -O /tmp/caca "http://84.232.79.194:8090/cetelmontv.flv" & ;;
  403.  
  404.     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 & ;;
  405.  
  406.     *) exit ;;
  407.  
  408. esac
  409.  
  410.  
  411.  
  412. ############################## Reproducir el streaming.
  413.  
  414. LASTPID=$(echo $!)
  415. sleep $CACHE_STREAMING
  416. size=`du /tmp/caca | awk '{ print substr( $0, 0, 2 ) }'`
  417.  
  418. if [ $KDE -eq 1 ]; then # Si KDE no está arrancado.
  419.  
  420.  
  421.  
  422.     if [ 0 -eq $size ]; then
  423.          zenity --no-wrap --error --text="No se ha podido establecer comunicación con el servidor de streaming de $CANAL" ;
  424.     else
  425.         mplayer threads=1 -really-quiet -mc 10 -autosync 30 -cache $CACHE_MPLAYER /tmp/caca ;
  426. #       smplayer -actions “threads=1 -really-quiet -mc 10 -autosync 30 -cache $CACHE_MPLAYER” /tmp/caca ;
  427. #       zenity --question --text "¿Desea guardar el streaming de video en disco?" ;
  428.         rm /tmp/caca ;
  429. #       case $? in
  430. #               0) mv /tmp/caca `zenity --file-selection --save` ;;
  431. #               1) rm /tmp/caca ;;
  432. #           esac
  433.     fi
  434.  
  435.  
  436. elif [ $KDE -eq 0 ]; then # Si KDE está arrancado.
  437.  
  438.  
  439.     if [ 0 -eq $size ]; then
  440.         kdialog --title 'Fallo al conectar' --error "No se ha podido establecer comunicación con el servidor de streaming de $CANAL" ;
  441.     else
  442.         mplayer threads=1 -really-quiet -mc 10 -autosync 30 -cache $CACHE_MPLAYER /tmp/caca ;
  443. #       smplayer -actions “threads=1 -really-quiet -mc 10 -autosync 30 -cache $CACHE_MPLAYER” /tmp/caca ;
  444. #       kdialog --yesno "¿Desea guardar el streaming de video en disco?" ;
  445.             rm /tmp/caca ;
  446. #       case $? in
  447. #               0) mv /tmp/caca `kdialog --getsavefilename $HOME` ;;
  448. #               1) rm /tmp/caca ;;
  449. #           esac
  450.     fi
  451.  
  452.  
  453.  
  454. fi
  455.  
  456. ############################## Desconectamos del canal y arancamos de nuevo el script.
  457.  
  458. kill -9 $LASTPID
  459. sh $0 &
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top