Advertisement
Guest User

TVenLinux.sh

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