Advertisement
Guest User

TVenLinux_vlc

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