Friday, September 11, 2009

Electric Box Solution Level19

Script to watch RAI channels without Firefox

http://www.slacky.eu/wikislack/index.php?title=Rai.tv_senza_silverlight . Lately, though, I have problems accessing the site and also rai.tv lo scaricamento dei canali effettuati dallo script è particolarmente lento (a volte non avviene proprio perché passano i 10 secondi di timeout impostati nello script. Una soluzione a questo problema è aumentare il timeout, per esempio portandolo a 20 o 30 secondi). Per evitare di dover aspettare ogni volta diversi secondi per poter avere l'elenco dei canali, allora, ho rimesso mano a un vecchio script che scrissi diversi mesi fa, poco dopo che fu aperto il sito rai.tv, per poter scegliere i canali da vedere ed ecco il risultato (
Attenzione
: i canali Rai 1, Rai 2 e Rai 3 potrebbero non funzionare ):
#
!/bin/
bash # Last Updated: 26/11/2010

+ # For tips and advice visit http://forum.ubuntu-it.org/index.php/topic, 316995.0.html function select () { channel

= `zenity - list - height = 400 - width = 300 - title =" Television "- text =" Which channel do you want to see? " - Column = "Channel" \\ "=== === TV" Rai Uno Rai Due "" Rai Tre "Rai 4" Rai 5 "Rai News 24 Rai Sport Più" Rai Sport 2 "\\ Rai Edu1" Rai History "RaiSat Extra" RaiSat Premium "RaiSat Cinema" RaiSat YoYo " Rai Gulp "Rai School" Rai Med "\\ " EuroNews "Sportitalia" "All Music" "RTL 102.5 (TV)" "NRK1" NRK2 "NRK Rogaland" Arcoiris TV "Antena 1" \\ "France24 Inglese" etvsatellite "" CBL Channel [3] CHANNEL ONE, "SAT 2000" "Last Tg1" "Last Tg2" "Last TG3" RADIO === === "\\
" Radio One " "Radio Two" "Radio Three" Isoradio "" RDS "" Radio 105 "102.5 RTL (Radio)" Capital Radio "" Radio Deejay "\\
" Radio24 "Controradio" "Radio Popular" Radio Onda Rossa " "Radio shock wave" "Open City Radio" "Radio Blackout" \\ "Radio Sherwood" "Virgin Radio" "Virgin rock classico" "Virgin rock extreme" "Virgin rock alternative" "Virgin woodstock" \ "Virgin revolver" "LifeGate Radio" "Radio Flash"` function play_rai(){ if [ ! -f ~/bin/rai.py ]; then if [ ! -d ~/bin ]; then mkdir ~/bin
fi
wget "http://elubuntu.altervista.org/rai.py" -O ~/bin/rai.py chmod +x ~/bin/rai.py
 fi        ~/bin/rai.py   "$1"    }    
function play () { vlc "$ 1"}
while true; do
select homes
$
channel in

"TV === ==="
http://mediapolis.rai.it/relinker/relinkerServlet.htm?

cont = 180117;;

"Rai 4"
) play_rai http://mediapolis.rai.it/relinker/relinkerServlet.htm?

cont = 75708;;

Rai 5 ") play_rai http://mediapolis.rai.it/relinker/relinkerServlet.htm?
cont = 72382;; Rai News 24 ") play_rai http://mediapolis.rai.it/relinker/relinkerServlet.htm?
cont = 1;; Rai Sport Più ") play_rai http://mediapolis.rai.it/relinker/relinkerServlet.htm?
cont = 4145;;
Rai Sport 2 ") play_rai http://mediapolis.rai.it/relinker/relinkerServlet.htm?
cont = 179975;;
Rai Edu1"
) play_rai http://mediapolis.rai.it/relinker/relinkerServlet . htm? cont = 24268;;
Rai History ") play_rai http://mediapolis.rai.it/relinker/relinkerServlet.htm?

cont = 24269;;
" RaiSat Extra ") play_rai http://mediapolis.rai.it/relinker/relinkerServlet.htm?
cont = 72382;;
"RaiSat Premium
) play_rai http://mediapolis.rai.it/relinker/relinkerServlet.htm? Q. = 72916;; "RaiSat Cinema"
) play_rai http://mediapolis.rai.it/relinker/relinkerServlet.htm?
cont = 72381;; "RaiSat YoYo" ) play_rai http://mediapolis.rai.it/relinker/relinkerServlet.htm? cont = 72918;;
Rai Gulp ") play_rai http://mediapolis.rai.it/relinker/relinkerServlet.htm? cont = 4119;;
Rai School ") play_rai http://mediapolis.rai.it/relinker/relinkerServlet.htm? cont = 24268;;
Rai Med ) play_rai http://mediapolis.rai.it/relinker/relinkerServlet.htm? cont =87127 ;;
"EuroNews" ) play_rai http://mediapolis.rai.it/relinker/relinkerServlet.htm? cont =113784 ;;
"Sportitalia" ) play mms://mms.cdn-tiscali.com/sportitalia ;; "All Music"
) play mms://live.mediaserver.kataweb.it/retea? MSWMExt =.asf ;; "RTL 102.5 (TV)"
) play mms://151.1.245.36/rtl102.5vs ;; "NRK1" ) play mms://mms-icanal-live.online.no/nrk_tv_webvid03_l ;;
"NRK2" ) play mms://mms-icanal-live.online.no/nrk_tv_webvid05_h ;; "NRK Rogaland" ) play mms://straumV.nrk.no/nrk_tv_rogaland_247_mbr ;;
"Arcoiris TV" ) play mms://193.41.7.40/vive-adsl ;; "Antena 1"
) play mms://81.196.2.232/pp1 ;; "France24 English" ) play mms://stream1.france24.yacast.net/f24_liveen ;;
"etvsatellite" ) play mms://streaming.e-tv.it/etvsatellite ;; "CBL Channel" ) play mms://151.1.245.71/cblfilm-live ;;
"[3]CHANNEL ONE" ) play mms://84.233.254.2/3Channel ;; "SAT 2000 "
) play mms: / / 89.119.94.130/Sat2000;; " Last Tg1 ") play http://link.rai.it/x/vod/ue/wmx/ultimo_tg1.asx;;
"Last Tg2" ) play http://link.rai.it/x/vod/ue/wmx/ultimo_tg2.asx;; "Last TG3" ) play http://link.rai.it/x / vod/ue/wmx/ultimo_tg3.asx;;
"Radio One" ) play rtsp: / / live.media.rai.it / broadcast / radiouno.rm;; "Radio Two"
) play rtsp : / / live.media.rai.it / broadcast / radiodue.rm;; "Radio Three" ) play rtsp: / / live.media.rai.it / broadcast / radiotre.rm ;;
"Isoradio" ) play rtsp://live.media.rai.it/broadcast/isoradio.rm ;; "RDS" ) play mms://fastreal.fastweb.it/RDS ;;
"Radio 105" ) play mms://151.1.245.6/1 ;; "RTL 102.5 (Radio)"
) play mms://151.1.245.36/rtl102.5hq/ ;; "Radio Capital" ) play mms://live.mediaserver.kataweb.it/capital? MSWMExt
=.asf ;; "Radio Deejay"
) play mms://live.mediaserver.kataweb.it/radiodeejay? MSWMext =.asf ;; "Radio24"
) play mms://62.196.2.90/Radio24 ;; "Controradio"
) play http://streaming.controradio.emmi.it:8190/ ;; "Radio Popolare"
) play http://www.radiopopolare.it/liveU.asx ;; "Radio Onda Rossa"
) play http://radio.dyne.org:8000/ondarossa.mp3 ;; "Radio onda d'Urto"
) play http://www.radiondadurto.org:8000/listen.pls ;; "Radio Città Aperta"
) play mms://stream.greynetweb.it/rca? MSWMExt =.asf ;;
"Radio Blackout" ) play http://stream.teknusi.org:8000/blackout.mp3 ;;
"Radio Sherwood" ) play http://62.101.68.185:8000/sherwood.ogg ;;
"Virgin radio" ) play mmsh://151.1.245.1/20?
MSWMExt =.asf ;;
"Virgin rock classico" ) play mms://151.1.245.1/24 ;;
"Virgin rock extreme" ) play mms://151.1.245.1/25 ;;
"Virgin rock alternative" ) play mms://151.1.245.1/36 ;;
"Virgin woodstock" ) play mms://151.1.245.1/13 ;;
"Virgin revolver" ) play mms://151.1.245.1/34 ;;
"LifeGate Radio" ) play mmsh: / / onair8.xdevel.com/Lifegate? MSWMExt
=. asf;; "Radio Flash"
) play http://stream5.top-ix.it:8000/radioflash.m3u;; *)
exit 0;; esac
done
(You can find it here:
http://forum.ubuntu-it.org/index.php/topic, 316995.0.html ) The only packages required to use the program are zenity ( used to create the simple interface of the program of choice) and vlc
(powerful multimedia player that lets you change the HTTP user agent, required to access the video present on rai.tv). To view the channels of RAI also need to install python3 . To use just copy the script into a file with a text editor
as desired, save the file called, for example,
rai, make it executable and place it in the folder
~ / bin (remember that
tilde ~ is an abbreviation of the current user's home folder), possibly creating it if it does not exist. The next time the computer should be sufficient to give the terminal command
rai (or the name you gave to the script) to open the channel of choice display. Of course you can also create a launcher in this command to start it even more simply.
this script you can only see the Directives listed in the window that appears, the script on this slacky.eu, however, also offers the ability to play many other video on the website of RAI. Update: at the suggestion of
mario000 I also added the link to the streaming of Sportitalia. If you have any suggestions to add other channels (including radio if you want), please notify (preferably equipped with a link to the streaming :-)). From now on I do not think I'll write all changes to the script, if it changes important.

0 comments:

Post a Comment