Sur la page
http://darbycrash.eu/PHP/ il y a des scripts permettant de regarder les TV de France, Allemagne, UK, Italie.
J'ai modifié le scrcipt wilmaa.php pour qu'il ne pose plus de questions, ainsi je peux mettre dans la crontab des lignes comme
22 23 30 09 3 /usr/bin/php /home/gg/wilmaa.php 4 40 7200
# RTS2 Dame de glace
10 21 28 09 1 /usr/bin/php /home/gg/wilmaa.php 1 4 8200
# RAI1 Young Montalbano
#
qui signifient que je vais enregistrer
le 30/09 à partir de 23h22, sur la chaine suisse RTS2, le film Dame de glace, pendant 7200 secondes (2 heures)
le 28/09 à partir de 21h10 sur la chaine italienne RAI1, le jeune Montalbano pendant 8200 secondes)
et donc créer un fichier Rai_1-09-28-2015_182131pm.ts (le même principe s'applique pour la RTS)
Les réponses à donner sont pour
1, 2, 3 ou 4
1) Italy
2) England
3) Germany
4) France
Pour Italy, il y a
0) Canale 5
1) Class TV Moda
2) Italia 1
3) LA7
4) Rai 1
5) Rai 2
6) Rai 3
7) Rai Gulp
8) Rai News24
9) Rai Scuola
10) Rai Sport 1
11) Rai Sport 2
12) Rai Storia
13) Rete 4
14) RSI LA1 HD
15) RSI LA1
16) RSI LA2 HD
17) RSI LA2
18) Tele Ticino
Pour England il y a
0) Al Jazeera 1) BBC 1 HD 2) BBC 1 3) BBC 2 HD
4) BBC 2 5) BBC 3 HD 6) BBC 3 7) BBC 4 HD
8) BBC 4 9) BBC World News HD10) BBC World News 11) Bloomberg TV
12) CCTV News 13) Channel 4 HD 14) Channel 5 15) CNBC
16) CNN 17) E4 18) Fashion TV 19) Film4
20) ITV 1 HD 21) ITV 1 22) ITV 2 23) ITV 3
24) ITV 4 25) More4 26) NHK World 27) Russia Today
28) Sky News 29) Travel Channel
Pour Germany
0) 3+ 1) 3Sat HD 2) 3Sat 3) Anixe HD
4) Anixe 5) ARD Alpha 6) Arte HD 7) Arte
8) ATV 9) BR 3 HD 10) BR 3 11) Das Erste HD
12) Das Erste 13) Das Vierte 14) Deluxe Music 15) Disney Channel
16) DMax 17) DW 18) Einsfestival HD 19) Einsfestival
20) EinsPlus HD 21) EinsPlus 22) EuroNews 23) EuroSport
24) HR HD 25) HR 26) Joiz 27) k-tv
28) Kabel 1 29) KiKa HD 30) KiKa 31) MDR HD
32) MDR 33) N24 HD 34) N24 35) NDR HD
36) NDR 37) Nick/ComedyCentral38) NTV 39) Orf 1 HD
40) Orf 1 41) Orf 2 HD 42) Orf 2 43) Phoenix HD
44) Phoenix 45) ProSieben HD 46) ProSieben MAXX 47) ProSieben
48) rbb HD 49) rbb 50) Ric 51) RTL 1
52) RTL 2 53) RTL CH 54) RTL Nitro 55) S1 HD
56) Sat1 57) Servus HD 58) Servus 59) Sixx
60) Sport 1 61) SRF 1 HD 62) SRF 1 63) SRF 2 HD
64) SRF 2 65) SRF Info 66) Super RTL 67) SWR HD
68) SWR 69) tagesschau 24 HD70) tagesschau 24 71) Tele 1
72) Tele 5 73) TeleBarn 74) TeleBasel 75) TeleBielingue
76) Tele M1 O 77) Tele M1 W 78) TeleSud Ostschweiz79) Tele Top SH
80) Tele Top TG 81) Tele Top ZH 82) Tele Zuri HD 83) Tele Zuri
84) TV24 HD 85) TV24 86) TVO 87) VIVA
88) VOX 89) WDR HD 90) WDR 91) ZDF HD
92) ZDF Info HD 93) ZDF Info 94) ZDF Kultur HD 95) ZDF Kultur
96) ZDF Neo HD 97) ZDF Neo 98) ZDF
et la France/Suisse
0) 6ter HD 1) Arte HD 2) Arte 3) BFM Business
4) BFM TV 5) C9 6) Canal+ 7) Canal Alpha Jura
8) Canal Alpha Neuchatel9) Cartoon Network 10) Cherie 25 HD 11) D8
12) D17 13) EuroNews 14) France 2 HD 15) France 2
16) France 3 17) France 4 18) France 5 19) France 24
20) France O 21) gulli 22) HD1 HD 23) ITele
24) kto 25) L'Equipe HD 26) La Tele 27) Leman Bleu
28) M6 HD 29) M6 30) Montagne 31) N23 HD
32) NRJ12 33) NT1 34) RMC HD 35) Rouge
36) RTL 9 37) RTS 1 HD 38) RTS 1 39) RTS 2 HD
40) RTS 2 41) TF 1 HD 42) TF 1 43) TMC
44) TV5Monde 45) TVM3 46) W9
Il serait intéressant de faire la même chose avec le script swisscom, vu que ce script permet de choisir différentes qualités, donc les personnes ayant une ligne avec un faible débit seront intéressées.
Le fichier wilmaa.php modifié
<?php
/*
Filename: WilmaaTV.php.
Copyright 2013/2015.
Author: Darby_Crash.
Email: kihol@inwind.it
This Program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.
This Program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
$version = "5.6";
error_reporting(0);
strncasecmp(php_uname('s'), "Win", 3) == 0 ? $windows = true : $windows = false;
if ($windows) {
if (file_exists("C:\\Program Files (x86)\\VideoLAN\\VLC\\vlc.exe")) {
$vlc = "C:\\Program Files (x86)\\VideoLAN\\VLC\\vlc.exe";
} else if (file_exists("C:\\Program Files\\VideoLAN\\VLC\\vlc.exe")) {
$vlc = "C:\\Program Files\\VideoLAN\\VLC\\vlc.exe";
} else {
$vlc = "C:\\Programmi\\VideoLAN\\VLC\\vlc.exe";
}
} else {
$vlc = "vlc";
}
$channels = array(
"Das Erste^DE^http://c001.p112.edgesuite.net/i/c001/daserste_1@97481/master.m3u8",
"ZDF^DE^http://c001.p112.edgesuite.net/i/c001/zdf_1@97483/master.m3u8",
"WDR^DE^http://c001.p114.edgesuite.net/i/c001/wdr_1@97490/master.m3u8",
"Sat1^DE^http://c001.p107.edgesuite.net/i/c001/sat1_1@97461/master.m3u8",
"RTL 1^DE^http://c001.p106.edgesuite.net/i/c001/rtl_1@97459/master.m3u8",
"RTL 2^DE^http://c001.p107.edgesuite.net/i/c001/rtl2_1@97460/master.m3u8",
"ProSieben^DE^http://c001.p106.edgesuite.net/i/c001/prosieben_1@97456/master.m3u8",
"VOX^DE^http://c001.p108.edgesuite.net/i/c001/vox_1@97466/master.m3u8",
"Kabel 1^DE^http://c001.p105.edgesuite.net/i/c001/kabeleins_1@97453/master.m3u8",
"DMax^DE^http://c001.p104.edgesuite.net/i/c001/dmax_1@97398/master.m3u8",
"Sixx^DE^http://c001.p107.edgesuite.net/i/c001/sixx_1@97462/master.m3u8",
"Das Vierte^DE^http://c001.p104.edgesuite.net/i/c001/dasvierte_1@97396/master.m3u8",
"Nick/ComedyCentral^DE^http://c001.p105.edgesuite.net/i/c001/nickcc_1@97455/master.m3u8",
"Super RTL^DE^http://c001.p107.edgesuite.net/i/c001/superrtl_1@97463/master.m3u8",
"VIVA^DE^http://c001.p105.edgesuite.net/i/c001/viva_1@97493/master.m3u8",
"Sport 1^DE^http://c001.p108.edgesuite.net/i/c001/sport1_1@97464/master.m3u8",
"N24^DE^http://c001.p104.edgesuite.net/i/c001/n24_1@97406/master.m3u8",
"NTV^DE^http://c001.p104.edgesuite.net/i/c001/ntv_1@97405/master.m3u8",
"KiKa^DE^http://c001.p113.edgesuite.net/i/c001/kika_1@97487/master.m3u8",
"SRF 1^DE^http://c001.p110.edgesuite.net/i/c001/sf1_1@97474/master.m3u8",
"SRF 2^DE^http://c001.p110.edgesuite.net/i/c001/sf2_1@97475/master.m3u8",
"Orf 1^DE^http://c001.p113.edgesuite.net/i/c001/orf1_1@97573/master.m3u8",
"Orf 2^DE^http://c001.p113.edgesuite.net/i/c001/orf2_1@97574/master.m3u8",
"3+^DE^http://c001.p114.edgesuite.net/i/c001/3plus_1@97489/master.m3u8",
"Arte^DE^http://c001.p107.edgesuite.net/i/c001/artede_1@97463/master.m3u8",
"SRF Info^DE^http://c001.p104.edgesuite.net/i/c001/sfinfo_1@97408/master.m3u8",
"3Sat^DE^http://c001.p112.edgesuite.net/i/c001/3sat_1@97480/master.m3u8",
"ZDF Neo^DE^http://c001.p111.edgesuite.net/i/c001/zdfneo_1@97479/master.m3u8",
"SWR^DE^http://c001.p113.edgesuite.net/i/c001/swr_1@97485/master.m3u8",
"BR 3^DE^http://c001.p107.edgesuite.net/i/c001/br3_1@97517/master.m3u8",
"Phoenix^DE^http://c001.p111.edgesuite.net/i/c001/phoenix_1@97476/master.m3u8",
"EuroSport^DE^http://c001.p105.edgesuite.net/i/c001/eurosportde_1@97452/master.m3u8",
"Joiz^DE^http://c001.p118.edgesuite.net/i/c001/joiz_1@135266/master.m3u8",
"Tele Zuri^DE^http://c001.p119.edgesuite.net/i/c001/tzurich_1@135275/master.m3u8",
"TeleSud Ostschweiz^DE^http://c001.p119.edgesuite.net/i/c001/tsudost_1@135274/master.m3u8",
"CNN^EN^http://c001.p105.edgesuite.net/i/c001/cnn_1@97501/master.m3u8",
"BBC World News^EN^http://c001.p105.edgesuite.net/i/c001/bbcworld_1@97498/master.m3u8",
"RTS 1^FR^http://c001.p109.edgesuite.net/i/c001/rts1_1@97469/master.m3u8",
"RTS 2^FR^http://c001.p109.edgesuite.net/i/c001/rts2_1@97470/master.m3u8",
"TV5Monde^FR^http://c001.p103.edgesuite.net/i/c001/tv5monde_1@97380/master.m3u8",
"France 2^FR^http://c001.p101.edgesuite.net/i/c001/france2_1@97347/master.m3u8",
"France 3^FR^http://c001.p100.edgesuite.net/i/c001/france3_1@97329/master.m3u8",
"France 5^FR^http://c001.p102.edgesuite.net/i/c001/france5_1@97351/master.m3u8",
"RTL 9^FR^http://c001.p102.edgesuite.net/i/c001/rtl9_1@97354/master.m3u8",
"TF 1^FR^http://c001.p109.edgesuite.net/i/c001/tf1_1@97468/master.m3u8",
"M6^FR^http://c001.p108.edgesuite.net/i/c001/m6_1@97467/master.m3u8",
"Arte^FR^http://c001.p101.edgesuite.net/i/c001/artefr_1@97346/master.m3u8",
"RSI LA1^IT^http://c001.p110.edgesuite.net/i/c001/rsila1_1@97472/master.m3u8",
"RSI LA2^IT^http://c001.p110.edgesuite.net/i/c001/rsila2_1@97473/master.m3u8",
"Rai 1^IT^http://c001.p103.edgesuite.net/i/c001/rai1_1@97382/master.m3u8",
"Rouge^FR^http://c001.p102.edgesuite.net/i/c001/rouge_1@97359/master.m3u8",
"RTL Nitro^DE^http://c001.p106.edgesuite.net/i/c001/rtlnitro_1@97458/master.m3u8",
"Servus^DE^http://c001.p114.edgesuite.net/i/c001/servus_1@97488/master.m3u8",
"ATV^DE^http://c001.p114.edgesuite.net/i/c001/atv_1@97491/master.m3u8",
"C9^FR^http://c001.p117.edgesuite.net/i/c001/c9_1@135252/master.m3u8",
"Canal Alpha Jura^FR^http://c001.p117.edgesuite.net/i/c001/caju_1@135253/master.m3u8",
"Tele 1^DE^http://c001.p118.edgesuite.net/i/c001/t1_1@135267/master.m3u8",
"Tele M1 W^DE^http://c001.p108.edgesuite.net/i/c001/tm1w_1@135269/master.m3u8",
"Tele Top TG^DE^http://c001.p120.edgesuite.net/i/c001/tttg_1@135278/master.m3u8",
"Tele Top ZH^DE^http://c001.p119.edgesuite.net/i/c001/ttzh_1@135271/master.m3u8",
"Tele Top SH^DE^http://c001.p120.edgesuite.net/i/c001/ttsh_1@135279/master.m3u8",
"TVO^DE^http://c001.p118.edgesuite.net/i/c001/tost_1@135270/master.m3u8",
"Tele M1 O^DE^http://c001.p118.edgesuite.net/i/c001/tm1o_1@135268/master.m3u8",
"Canal Alpha Neuchatel^FR^http://c001.p117.edgesuite.net/i/c001/cane_1@135254/master.m3u8",
"Tele Ticino^IT^http://c001.p117.edgesuite.net/i/c001/tticino_1@135255/master.m3u8",
"TeleBasel^DE^http://c001.p119.edgesuite.net/i/c001/tbasel_1@135273/master.m3u8",
"TeleBarn^DE^http://c001.p119.edgesuite.net/i/c001/tbarn_1@135272/master.m3u8",
"TeleBielingue^DE^http://c001.p120.edgesuite.net/i/c001/tbielingue_1@135280/master.m3u8",
"Italia 1^IT^http://c001.p103.edgesuite.net/i/c001/italia1_1@97381/master.m3u8",
"Das Erste HD^DE^http://c001.p104.edgesuite.net/i/c001/daserstehd_1@97395/master.m3u8",
"ZDF HD^DE^http://c001.p108.edgesuite.net/i/c001/zdfhd_1@97431/master.m3u8",
"Arte HD^DE^http://c001.p104.edgesuite.net/i/c001/artedehd_1@97394/master.m3u8",
"3Sat HD^DE^http://c001.p104.edgesuite.net/i/c001/3sathd_1@97393/master.m3u8",
"NDR^DE^http://c001.p113.edgesuite.net/i/c001/ndr_1@97484/master.m3u8",
"NDR HD^DE^http://c001.p105.edgesuite.net/i/c001/ndrhd_1@97424/master.m3u8",
"WDR HD^DE^http://c001.p107.edgesuite.net/i/c001/wdrhd_1@97430/master.m3u8",
"MDR^DE^http://c001.p123.edgesuite.net/i/c001/mdr_1@137782/master.m3u8",
"MDR HD^DE^http://c001.p127.edgesuite.net/i/c001/mdrhd_1@180319/master.m3u8",
"BR 3 HD^DE^http://c001.p101.edgesuite.net/i/c001/br3_hd_1@97418/master.m3u8",
"SWR HD^DE^http://c001.p107.edgesuite.net/i/c001/swrhd_1@97429/master.m3u8",
"HR^DE^http://c001.p123.edgesuite.net/i/c001/hr_1@137778/master.m3u8",
"HR HD^DE^http://c001.p113.edgesuite.net/i/c001/hr_hd_1@97447/master.m3u8",
"rbb^DE^http://c001.p106.edgesuite.net/i/c001/rbb_1@97457/master.m3u8",
"rbb HD^DE^http://c001.p114.edgesuite.net/i/c001/rbb_hd_1@97449/master.m3u8",
"Phoenix HD^DE^http://c001.p107.edgesuite.net/i/c001/phoenixhd_1@97428/master.m3u8",
"ARD Alpha^DE^http://c001.p123.edgesuite.net/i/c001/bralpha_1@137776/master.m3u8",
"N24 HD^DE^http://c001.p109.edgesuite.net/i/c001/n24hd_1@97436/master.m3u8",
"Disney Channel^DE^http://c001.p104.edgesuite.net/i/c001/disney_channel_de_1@97396/master.m3u8",
"Servus HD^DE^http://c001.p106.edgesuite.net/i/c001/servushd_1@97425/master.m3u8",
"Tele 5^DE^http://c001.p108.edgesuite.net/i/c001/tele5_1@97465/master.m3u8",
"KiKa HD^DE^http://c001.p105.edgesuite.net/i/c001/kikahd_1@97423/master.m3u8",
"Ric^DE^http://c001.p123.edgesuite.net/i/c001/ric_1@137780/master.m3u8",
"ProSieben MAXX^DE^http://c001.p107.edgesuite.net/i/c001/pro7maxx_1@97522/master.m3u8",
"ZDF Neo HD^DE^http://c001.p109.edgesuite.net/i/c001/zdfneohd_1@97434/master.m3u8",
"ZDF Kultur^DE^http://c001.p111.edgesuite.net/i/c001/zdfkultur_1@97478/master.m3u8",
"ZDF Kultur HD^DE^http://c001.p108.edgesuite.net/i/c001/zdfkulturhd_1@97433/master.m3u8",
"ZDF Info^DE^http://c001.p111.edgesuite.net/i/c001/zdfinfo_1@97477/master.m3u8",
"ZDF Info HD^DE^http://c001.p108.edgesuite.net/i/c001/zdfinfohd_1@97432/master.m3u8",
"EinsPlus^DE^http://c001.p123.edgesuite.net/i/c001/einsplus_1@137775/master.m3u8",
"EinsPlus HD^DE^http://c001.p113.edgesuite.net/i/c001/einsplus_hd_1@97446/master.m3u8",
"Einsfestival^DE^http://c001.p112.edgesuite.net/i/c001/einsfestival_1@97482/master.m3u8",
"Einsfestival HD^DE^http://c001.p105.edgesuite.net/i/c001/einsfestivalhd_1@97422/master.m3u8",
"tagesschau 24^DE^http://c001.p123.edgesuite.net/i/c001/tagesschau24_1@137781/master.m3u8",
"tagesschau 24 HD^DE^http://c001.p114.edgesuite.net/i/c001/tagesschau24_hd_1@97450/master.m3u8",
"Deluxe Music^DE^http://c001.p123.edgesuite.net/i/c001/deluxemusic_1@137777/master.m3u8",
"Anixe^DE^http://c001.p113.edgesuite.net/i/c001/anixe_1@97486/master.m3u8",
"Anixe HD^DE^http://c001.p111.edgesuite.net/i/c001/anixehd_1@97440/master.m3u8",
"DW^DE^http://c001.p104.edgesuite.net/i/c001/dwtv_1@97397/master.m3u8",
"k-tv^DE^http://c001.p104.edgesuite.net/i/c001/ktv_1@97400/master.m3u8",
"Orf 1 HD^DE^http://c001.p101.edgesuite.net/i/c001/orf1hd_1@97416/master.m3u8",
"Orf 2 HD^DE^http://c001.p101.edgesuite.net/i/c001/orf2hd_1@97417/master.m3u8",
"SRF 1 HD^DE^http://c001.p106.edgesuite.net/i/c001/sf1hd_1@97426/master.m3u8",
"SRF 2 HD^DE^http://c001.p106.edgesuite.net/i/c001/sf2hd_1@97427/master.m3u8",
"S1 HD^DE^http://c001.p117.edgesuite.net/i/c001/s1tvhd_1@135250/master.m3u8",
"TV24 HD^DE^http://c001.p128.edgesuite.net/i/c001/tv24_hd_1@180322/master.m3u8",
"Tele Zuri HD^DE^http://c001.p128.edgesuite.net/i/c001/tzurich_hd_1@180321/master.m3u8",
"TF 1 HD^FR^http://c001.p102.edgesuite.net/i/c001/tf1hd_1@97413/master.m3u8",
"France 2 HD^FR^http://c001.p100.edgesuite.net/i/c001/france2hd_1@97420/master.m3u8",
"Canal+^FR^http://c001.p101.edgesuite.net/i/c001/canalplus_1@97337/master.m3u8",
"M6 HD^FR^http://c001.p100.edgesuite.net/i/c001/m6hd_1@97421/master.m3u8",
"RTS 1 HD^FR^http://c001.p126.edgesuite.net/i/c001/rts1hd_1@114347/master.m3u8",
"RTS 2 HD^FR^http://c001.p102.edgesuite.net/i/c001/rts2hd_1@97415/master.m3u8",
"Arte HD^FR^http://c001.p100.edgesuite.net/i/c001/artefrhd_1@97419/master.m3u8",
"D8^FR^http://c001.p100.edgesuite.net/i/c001/d8_1@97328/master.m3u8",
"W9^FR^http://c001.p101.edgesuite.net/i/c001/w9_1@97344/master.m3u8",
"TMC^FR^http://c001.p103.edgesuite.net/i/c001/tmc_1@97379/master.m3u8",
"NT1^FR^http://c001.p108.edgesuite.net/i/c001/nt1_1@97528/master.m3u8",
"NRJ12^FR^http://c001.p121.edgesuite.net/i/c001/nrj12_1@137759/master.m3u8",
"France 4^FR^http://c001.p100.edgesuite.net/i/c001/france4_1@97330/master.m3u8",
"BFM TV^FR^http://c001.p121.edgesuite.net/i/c001/bfmtv_1@137750/master.m3u8",
"ITele^FR^http://c001.p121.edgesuite.net/i/c001/itele_1@137755/master.m3u8",
"D17^FR^http://c001.p100.edgesuite.net/i/c001/d17_1@97327/master.m3u8",
"gulli^FR^http://c001.p102.edgesuite.net/i/c001/gulli_1@97352/master.m3u8",
"France O^FR^http://c001.p122.edgesuite.net/i/c001/franceo_1@137770/master.m3u8",
"HD1 HD^FR^http://c001.p110.edgesuite.net/i/c001/hd1hd_1@97437/master.m3u8",
"L'Equipe HD^FR^http://c001.p110.edgesuite.net/i/c001/equipetvhd_1@97439/master.m3u8",
"6ter HD^FR^http://c001.p112.edgesuite.net/i/c001/6terhd_1@97443/master.m3u8",
"N23 HD^FR^http://c001.p112.edgesuite.net/i/c001/n23hd_1@97444/master.m3u8",
"RMC HD^FR^http://c001.p112.edgesuite.net/i/c001/rmchd_1@97445/master.m3u8",
"Cherie 25 HD^FR^http://c001.p110.edgesuite.net/i/c001/cheriehd_1@97438/master.m3u8",
"BFM Business^FR^http://c001.p121.edgesuite.net/i/c001/bfmb_1@137749/master.m3u8",
"France 24^FR^http://c001.p121.edgesuite.net/i/c001/france24_1@137754/master.m3u8",
"EuroNews^FR^http://c001.p121.edgesuite.net/i/c001/euronews_1@137752/master.m3u8",
"Montagne^FR^http://c001.p121.edgesuite.net/i/c001/montagne_1@137758/master.m3u8",
"TVM3^FR^http://c001.p104.edgesuite.net/i/c001/tvm3_1@97401/master.m3u8",
"kto^FR^http://c001.p105.edgesuite.net/i/c001/kto_1@97495/master.m3u8",
"BBC 1^EN^http://c001.p109.edgesuite.net/i/c001/bbc1_1@97471/master.m3u8",
"BBC 1 HD^EN^http://c001.p103.edgesuite.net/i/c001/bbc1hd_1@97412/master.m3u8",
"BBC 2^EN^http://c001.p124.edgesuite.net/i/c001/bbc2_1@137786/master.m3u8",
"BBC 2 HD^EN^http://c001.p109.edgesuite.net/i/c001/bbc2hd_1@97435/master.m3u8",
"BBC 3^EN^http://c001.p113.edgesuite.net/i/c001/bbc3_1@97575/master.m3u8",
"BBC 3 HD^EN^http://c001.p126.edgesuite.net/i/c001/bbc3_hd_1@180212/master.m3u8",
"BBC 4^EN^http://c001.p123.edgesuite.net/i/c001/bbc4_1@137784/master.m3u8",
"BBC 4 HD^EN^http://c001.p126.edgesuite.net/i/c001/bbc4_hd_1@180211/master.m3u8",
"ITV 1^EN^http://c001.p124.edgesuite.net/i/c001/itv1_1@137791/master.m3u8",
"ITV 1 HD^EN^http://c001.p111.edgesuite.net/i/c001/itvhd_1@97442/master.m3u8",
"ITV 2^EN^http://c001.p124.edgesuite.net/i/c001/itv2_1@137792/master.m3u8",
"ITV 3^EN^http://c001.p105.edgesuite.net/i/c001/itv3_1@97494/master.m3u8",
"ITV 4^EN^http://c001.p106.edgesuite.net/i/c001/itv4_1@97503/master.m3u8",
"Channel 4 HD^EN^http://c001.p111.edgesuite.net/i/c001/channel4hd_1@97441/master.m3u8",
"Channel 5^EN^http://c001.p124.edgesuite.net/i/c001/channel5_1@137787/master.m3u8",
"More4^EN^http://c001.p124.edgesuite.net/i/c001/more4_1@137795/master.m3u8",
"Fashion TV^EN^http://c001.p106.edgesuite.net/i/c001/fashiontv_1@97512/master.m3u8",
"Travel Channel^EN^http://c001.p113.edgesuite.net/i/c001/travelchannel_1@97576/master.m3u8",
"BBC World News HD^EN^http://c001.p127.edgesuite.net/i/c001/bbcnewshd_1@180318/master.m3u8",
"CCTV News^EN^http://c001.p101.edgesuite.net/i/c001/cctvnews_1@97342/master.m3u8",
"Al Jazeera^EN^http://c001.p123.edgesuite.net/i/c001/aljazeera_1@137783/master.m3u8",
"Bloomberg TV^EN^http://c001.p124.edgesuite.net/i/c001/bloomberg_1@137785/master.m3u8",
"CNBC^EN^http://c001.p124.edgesuite.net/i/c001/cnbc_1@137788/master.m3u8",
"NHK World^EN^http://c001.p124.edgesuite.net/i/c001/nhkw_1@137796/master.m3u8",
"Russia Today^EN^http://c001.p125.edgesuite.net/i/c001/russia_1@137797/master.m3u8",
"Sky News^EN^http://c001.p106.edgesuite.net/i/c001/skynews_1@97511/master.m3u8",
"RSI LA1 HD^IT^http://c001.p103.edgesuite.net/i/c001/rsila1hd_1@97410/master.m3u8",
"RSI LA2 HD^IT^http://c001.p103.edgesuite.net/i/c001/rsila2hd_1@97411/master.m3u8",
"Rai 2^IT^http://c001.p122.edgesuite.net/i/c001/rai2_1@137763/master.m3u8",
"Rai 3^IT^http://c001.p122.edgesuite.net/i/c001/rai3_1@137764/master.m3u8",
"Rai Gulp^IT^http://c001.p122.edgesuite.net/i/c001/raigulp_1@137765/master.m3u8",
"Rai Scuola^IT^http://c001.p122.edgesuite.net/i/c001/raiscuola_1@137768/master.m3u8",
"Rai Storia^IT^http://c001.p103.edgesuite.net/i/c001/raistoria_1@97389/master.m3u8",
"Rai Sport 1^IT^http://c001.p103.edgesuite.net/i/c001/raisport1_1@97387/master.m3u8",
"Rai Sport 2^IT^http://c001.p122.edgesuite.net/i/c001/raisport2_1@137769/master.m3u8",
"Rai News24^IT^http://c001.p122.edgesuite.net/i/c001/rainews_1@137767/master.m3u8",
"Canale 5^IT^http://c001.p121.edgesuite.net/i/c001/canale5_1@137760/master.m3u8",
"Class TV Moda^IT^http://c001.p103.edgesuite.net/i/c001/tvmoda_1@97383/master.m3u8",
"LA7^IT^http://c001.p122.edgesuite.net/i/c001/la7_1@137762/master.m3u8",
"TV24^DE^http://c001.p111.edgesuite.net/i/c001/tv24_1@97562/master.m3u8",
"La Tele^FR^http://c001.p109.edgesuite.net/i/c001/latele_1@97539/master.m3u8",
"RTL CH^DE^http://c001.p118.edgesuite.net/i/c001/rtlchhd_1@135257/master.m3u8",
"ProSieben HD^DE^http://c001.p119.edgesuite.net/i/c001/pro7chhd_1@135262/master.m3u8",
"Cartoon Network^FR^http://c001.p121.edgesuite.net/i/c001/cn_1@137751/master.m3u8",
"Leman Bleu^FR^http://c001.p121.edgesuite.net/i/c001/lemanbleu_1@137757/master.m3u8",
"Rete 4^IT^http://c001.p122.edgesuite.net/i/c001/rete4_1@137766/master.m3u8",
"EuroNews^DE^http://c001.p123.edgesuite.net/i/c001/euronewsde_1@137774/master.m3u8",
"E4^EN^http://c001.p124.edgesuite.net/i/c001/e4_1@137789/master.m3u8",
"Film4^EN^http://c001.p124.edgesuite.net/i/c001/film4_1@137790/master.m3u8"
);
foreach ($channels as $channel) {
$ch = explode("^", $channel);
if ($ch[1] == 'IT') {
$list_it[] = $ch[0].'^'.$ch[2];
} else if ($ch[1] == 'EN') {
$list_en[] = $ch[0].'^'.$ch[2];
} else if ($ch[1] == 'DE') {
$list_de[] = $ch[0].'^'.$ch[2];
} else if ($ch[1] == 'FR') {
$list_fr[] = $ch[0].'^'.$ch[2];
}
}
echo $argv[1];
echo $argv[2];
echo "\r\nWelcome to WilmaaTV v".$version." by Darby_Crash\r\n";
while (true) {
echo "\r\nCountry selection:\r\n\r\n1) Italy\r\n2) England\r\n3) Germany\r\n4) France\r\n\r\nChoose a country (0=Exit): ";
$cc = $argv[1];
if ($cc == '0') {
die("\r\nGoodbye!\r\n\r\n");
} else if ($cc > '4' || !preg_match('@\d@',$cc)) {
echo "\r\nWrong choice!\r\n";
sleep(2);
continue;
}
if ($cc == '1') {
$list = $list_it;
} else if ($cc == '2') {
$list = $list_en;
} else if ($cc == '3') {
$list = $list_de;
} else if ($cc == '4') {
$list = $list_fr;
}
natcasesort($list);
$list = array_values($list);
unset($title);
unset($url);
foreach ($list as $elem) {
$str = explode('^',$elem);
$title[] = $str[0];
$url[] = $str[1];
}
while (true) {
echo "\r\nChannels list:\r\n\r\n";
for ($i=0; $i<count($title); $i++) {
if (count($title) > 24) {
echo "$i) ".$title[$i].((($i+1)% 4 == 0 ) ? "\r\n" : str_repeat(' ',18 - strlen($title[$i].$i)));
} else {
echo "$i) ".$title[$i]."\r\n";
}
}
echo "\r\n\r\nChoose a channel (x=exit, m=main screen): ";
$inp = $argv[2];
if ($inp == "m" || $inp == "M") {
break;
} else if ($inp == "x" || $inp == "X") {
die("\r\nGoodbye!\r\n\r\n");
} else if ($inp >= count($title) || !is_numeric($inp)){
echo "\r\nWrong choice!\r\n";
sleep(2);
continue;
}
$ip = "85.".rand(0,7).".".rand(0,255).".".rand(0,255);
echo "\r\nPlaying ".$title[$inp]."...\r\n";
/*'.$title.'-'.date('m-d-Y_hisa').'.ts"*/
$file = str_replace(' ', '_', $title[$inp].'-'.date('m-d-Y_Hisa'));
/* echo $file;*/
$cmd = 'livestreamer -o \''.$file.'\'.ts -f --player "\''.$vlc.'\' --meta-title=\''.$title[$inp].'\' --file-caching=10000" --http-header "X-Forwarded-For='.$ip.'" "hlsvariant://'.$url[$inp].'" best';
echo $cmd;
shell_exec($cmd." > /dev/null 2>/dev/null &");
echo "\nsleep start";
/* sleep(7200);
echo "\nsleep fini";*/
sleep($argv[3]);
shell_exec('killall livestreamer');
}
}
?>
dans la crontab, j'ai mis le chemin de livestreamer (/usr/local/bin), donc j'ai une ligne
PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/bin