epg sly morta

Tutto quello che ha a che fare con i plugins.

Moderatori: ragno, tapino, alez, zulu, davidea

lukkino
Messaggi: 1087
Iscritto il: 20 gen 2007, 09:49

Re: epg sly morta

Messaggio da lukkino »

Ho messo disponibile su http://lukkinosat.altervista.org sia una nuova versione di test di loadepg che del dizionario skybox

La nuova versione include:

- Scarico anche degli altri provider che mancavano

- Aggiunto il menu di setup per selezionare la scheda dvb e se utilizzare il file canali equivalenti

- Aggiunto supporto al file canali equivalenti, per chi non lo sapesse (esisteva anche nelle versioni precedenti) permette di abbinare l'epg scaricato di un canale ad uno o più canali equivalenti il cui epg manca... esempio, viene scaricato l'epg per il canale RAI1, questo epg può essere reso disponibile sia per l'equivalente canale RAI1 sul digitale terrestre che su Astra...

- In /tmp oltre ai file epg.tmp e epg.err, viene ora creato un file chiamato epg.channels, che permette di vedere quali epg sono disponibili e quali sono stati scaricati...
Se nella colonna EPG è presente "Yes", l'epg è stato caricato.
Se è presente "No", l'epg non è stato caricato perchè il relativo canale hai il Channel ID sballato, o manca totalmente.
Se è presente "---" vuol dire che quel canale fa parte del bouquet, ma non esiste alcun epg
Esiste una colonna "Sky Num." che indica il numero del canale sullo Sky Box

- Corretto il bug segnalato sopra per il file epg.err

Se avete già utilizzato il plugin i file vanno copiati a mano nella directory "/video/plugins/loadepg"

Manca ancora la parte OSD quando il plugin è in funzione, per cui vedete schermo nero... da quando ho scelto di uniformare l'interfaccia all'osd mi sono per così dire incasinato, non ho idea di come fare :shock:

Per il resto se avete opinioni o idee o malfunzionamenti fatemi sapere.

Ciao :)
VDRBOX: GA-K8NS, AMD Sempron 2600+, Hauppauge Nexus 2.1, LFS
grabber
Messaggi: 30
Iscritto il: 06 nov 2007, 18:48

Re: epg sly morta

Messaggio da grabber »

Mi scuso fin da ora per la mia evidente imbranataggine. :(
Sto cercando di far funzionare il plugins loadepg sulla mia ubuntu 7.10 usando una skystar2 accoppiata a vdr+xine e non ho ancora capito se c'è qualcosa che non va bene durante l'istallazione

Codice: Seleziona tutto

Plugin loadepg:
make[1]: Entering directory `/vdr/vdr-1.4.7/PLUGINS/src/loadepg'
make[1]: Leaving directory `/vdr/vdr-1.4.7/PLUGINS/src/loadepg'
make[1]: Entering directory `/vdr/vdr-1.4.7/PLUGINS/src/loadepg'
g++ -O2 -Wall -Woverloaded-virtual -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"loadepg"' -I../../../include loadepg.c
loadepg.c: In member function ‘int cTaskLoadepg::DecodeHuffmanCode(unsigned char*, int)’:
loadepg.c:376: warning: unused variable ‘x’
loadepg.c:470: warning: label ‘endloop1’ defined but not used
loadepg.c: In member function ‘bool cTaskLoadepg::ReadDictionary()’:
loadepg.c:505: warning: format ‘%c’ expects type ‘char*’, but argument 3 has type ‘char (*)[256]’
loadepg.c:505: warning: format ‘%[^
’ expects type ‘char*’, but argument 4 has type ‘char (*)[256]’
loadepg.c:509: warning: format ‘%[^=’ expects type ‘char*’, but argument 3 has type ‘char (*)[256]’
loadepg.c:509: warning: format ‘%[^
’ expects type ‘char*’, but argument 4 has type ‘char (*)[256]’
loadepg.c:595: warning: format ‘%c’ expects type ‘char*’, but argument 3 has type ‘char (*)[256]’
loadepg.c:595: warning: format ‘%[^
’ expects type ‘char*’, but argument 4 has type ‘char (*)[256]’
loadepg.c:599: warning: format ‘%[^=’ expects type ‘char*’, but argument 3 has type ‘char (*)[256]’
loadepg.c:599: warning: format ‘%[^
’ expects type ‘char*’, but argument 4 has type ‘char (*)[256]’
loadepg.c:577: warning: label ‘fine’ defined but not used
loadepg.c: In member function ‘void cTaskLoadepg::LoadFromSatellite()’:
loadepg.c:774: warning: format ‘%[^:’ expects type ‘char*’, but argument 5 has type ‘char (*)[32]’
loadepg.c: In member function ‘void cTaskLoadepg::GetTitlesSKYBOX(int, unsigned char*, int)’:
loadepg.c:1275: warning: unused variable ‘EventId’
loadepg.c: In member function ‘void cTaskLoadepg::GetSummariesSKYBOX(int, unsigned char*, int)’:
loadepg.c:1346: warning: unused variable ‘EventId’
loadepg.c: In member function ‘virtual bool cPluginLoadepg::Initialize()’:
loadepg.c:1789: warning: format ‘%[^:’ expects type ‘char*’, but argument 3 has type ‘char (*)[256]’
loadepg.c:1789: warning: format ‘%[^:’ expects type ‘char*’, but argument 6 has type ‘char (*)[256]’
loadepg.c:1789: warning: format ‘%[^
’ expects type ‘char*’, but argument 8 has type ‘char (*)[256]’
loadepg.c:1798: warning: format ‘%[^:’ expects type ‘char*’, but argument 3 has type ‘char (*)[256]’
loadepg.c:1798: warning: format ‘%[^:’ expects type ‘char*’, but argument 6 has type ‘char (*)[256]’
loadepg.c:1804: warning: zero-length printf format string
loadepg.c:1807: warning: format ‘%[^:’ expects type ‘char*’, but argument 3 has type ‘char (*)[256]’
loadepg.c:1807: warning: format ‘%[^:’ expects type ‘char*’, but argument 6 has type ‘char (*)[256]’
loadepg.c:1813: warning: zero-length printf format string
loadepg.c:1816: warning: format ‘%[^:’ expects type ‘char*’, but argument 3 has type ‘char (*)[256]’
loadepg.c:1816: warning: format ‘%[^
’ expects type ‘char*’, but argument 4 has type ‘char (*)[256]’
loadepg.c:1822: warning: zero-length printf format string
loadepg.c:1825: warning: format ‘%[^:’ expects type ‘char*’, but argument 3 has type ‘char (*)[256]’
loadepg.c:1825: warning: format ‘%[^:’ expects type ‘char*’, but argument 4 has type ‘char (*)[256]’
loadepg.c:1825: warning: format ‘%[^
’ expects type ‘char*’, but argument 5 has type ‘char (*)[256]’
loadepg.c:1777: warning: unused variable ‘char2’
loadepg.c:1778: warning: unused variable ‘char3’
loadepg.c:1781: warning: unused variable ‘int3’
loadepg.c: In member function ‘int cTaskLoadepg::DecodeHuffmanCode(unsigned char*, int)’:
loadepg.c:383: warning: ‘lastMask’ may be used uninitialized in this function
loadepg.c:381: warning: ‘lastByte’ may be used uninitialized in this function
formats.h: At global scope:
formats.h:13: warning: ‘SkyItCategory’ defined but not used
g++ -O2 -Wall -Woverloaded-virtual -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"loadepg"' -I../../../include i18n.c
g++ -O2 -Wall -Woverloaded-virtual -shared loadepg.o i18n.o -o libvdr-loadepg.so
make[1]: Leaving directory `/vdr/vdr-1.4.7/PLUGINS/src/loadepg'
qualcuno mi può dire se c'è qualche errore e suggerirmi la stringa da aggiungere allo script per far partire loadepg?(io ho aggiunto -P'loadepg -r ma del plugin nemmeno l'ombra.
lukkino
Messaggi: 1087
Iscritto il: 20 gen 2007, 09:49

Re: epg sly morta

Messaggio da lukkino »

Stai usando la vecchia versione, scarica l'ultima.

Non dovresti più avere quei warning. Comunque la compilazione è andata a buon fine :-)

Se usi una skystar 2 forse devi andare nel setup del plugin e settare la scheda 2

Ciao
VDRBOX: GA-K8NS, AMD Sempron 2600+, Hauppauge Nexus 2.1, LFS
lukkino
Messaggi: 1087
Iscritto il: 20 gen 2007, 09:49

Re: epg sly morta

Messaggio da lukkino »

Ragazzi se avevate scaricato la versione prima, riscaricate ora ho fatto un piccolo errore nella pagina html :)

Scusate

Ciao
VDRBOX: GA-K8NS, AMD Sempron 2600+, Hauppauge Nexus 2.1, LFS
grabber
Messaggi: 30
Iscritto il: 06 nov 2007, 18:48

Re: epg sly morta

Messaggio da grabber »

lukkino ha scritto:Stai usando la vecchia versione, scarica l'ultima.

Non dovresti più avere quei warning. Comunque la compilazione è andata a buon fine :-)

Se usi una skystar 2 forse devi andare nel setup del plugin e settare la scheda 2

Ciao
Grazie per la risposta lukkino :) però quando nel post prima ho scritto che del plugin neanche l'ombra intendevo dire che loadepg non mi compare nè nel menù principale nè fra i plugins installati e vista la situazione non ho idea di come sia possibile entrare nel setup del plugin.
lukkino
Messaggi: 1087
Iscritto il: 20 gen 2007, 09:49

Re: epg sly morta

Messaggio da lukkino »

Da una finestra terminale, spostandoti nella cartella dei sorgenti di vdr, e faccendo

Codice: Seleziona tutto

ls PLUGINS/lib
vedi i plugins che si sono compilati correttamente nel formato

Codice: Seleziona tutto

libvdr-NOME_PLUGIN-x.x.x
libvdr-NOME_PLUGIN-x.x.x
libvdr-NOME_PLUGIN-x.x.x
.....
Per avere un plugin disponibile nel menu di VDR, lo devi aggiungere al comando.

Codice: Seleziona tutto

./vdr -P'xine' -P'loadepg' -P'ENNESIMO_PLUGIN' .....
Ciao :)
VDRBOX: GA-K8NS, AMD Sempron 2600+, Hauppauge Nexus 2.1, LFS
grabber
Messaggi: 30
Iscritto il: 06 nov 2007, 18:48

Re: epg sly morta

Messaggio da grabber »

lukkino ha scritto:Da una finestra terminale, spostandoti nella cartella dei sorgenti di vdr, e faccendo

Codice: Seleziona tutto

ls PLUGINS/lib
vedi i plugins che si sono compilati correttamente nel formato

Codice: Seleziona tutto

libvdr-NOME_PLUGIN-x.x.x
libvdr-NOME_PLUGIN-x.x.x
libvdr-NOME_PLUGIN-x.x.x
.....
Per avere un plugin disponibile nel menu di VDR, lo devi aggiungere al comando.

Codice: Seleziona tutto

./vdr -P'xine' -P'loadepg' -P'ENNESIMO_PLUGIN' .....
Ciao :)
Edito tutto perchè sono riuscito a far partire il plugin,ora cercherò di farlo funzionare.
Ciao :)
Pizzak
Messaggi: 138
Iscritto il: 19 gen 2007, 23:39

Re: epg sly morta

Messaggio da Pizzak »

Eh, non mi compila proprio, con l' airone maledetto (Xubuntu 8.04) non mi accontenta, dandomi questo errore:

Plugin loadepg:
make[1]: Entering directory `/a/vdr-1.6.0-1/PLUGINS/src/loadepg-0.2.0'
make[1]: Leaving directory `/a/vdr-1.6.0-1/PLUGINS/src/loadepg-0.2.0'
make[1]: Entering directory `/a/vdr-1.6.0-1/PLUGINS/src/loadepg-0.2.0'
g++ -g -O2 -Wall -Woverloaded-virtual -Wno-parentheses -fPIC -c -DUSE_CHANNELSCAN -DUSE_CMDSUBMENU -DUSE_CUTTIME -DUSE_DDEPGENTRY -DUSE_DOLBYINREC -DUSE_JUMPPLAY -DUSE_LIEMIKUUTIO -DUSE_MENUORG -DUSE_PLUGINMISSING -DUSE_SETTIME -DUSE_SORTRECORDS -DUSE_WAREAGLEICON -DUSE_YAEPG -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"loadepg"' -I../../../include loadepg.c
loadepg.c: In member function ‘void cTaskLoadepg::GetChannelsSKYBOX(int, unsigned char*, int)’:
loadepg.c:1444: error: jump to case label
loadepg.c:1434: error: crosses initialisation of ‘int ServiceNameLength’
loadepg.c:1433: error: crosses initialisation of ‘int ServiceProviderNameLength’
loadepg.c:1455: error: jump to case label
loadepg.c:1434: error: crosses initialisation of ‘int ServiceNameLength’
loadepg.c:1433: error: crosses initialisation of ‘int ServiceProviderNameLength’
loadepg.c: In member function ‘void cTaskLoadepg::CreateEpgDataFile()’:
loadepg.c:2593: warning: deprecated conversion from string constant to ‘char*’
loadepg.c:2594: warning: deprecated conversion from string constant to ‘char*’
make[1]: *** [loadepg.o] Error 1
make[1]: Leaving directory `/a/vdr-1.6.0-1/PLUGINS/src/loadepg-0.2.0'

Comprendete? Capite? Soluzioni?

Ciao, Pizzak

Video Disk Recorder 1.7.20
Hardware: Scheda madre Asus AT3N7A-I CPU: Atom 330 Proc.Video: ION RAM: 2GB DDR2 800 HDD: 160GB+1TB+512GB(USB)
Software: Debian Wheezy, Drivers Nvidia v270.41.19
grazymax
Messaggi: 34
Iscritto il: 02 giu 2007, 13:44

Re: epg sly morta

Messaggio da grazymax »

Ho provato anche io a compilare l'ultima versione del plugin e ho avuto lo stesso errore.
Il problema è dovuto al fatto che nello switch ci sono delle definizioni di alcune variabili senza specificare l'ambito in cui valgono quindi può accadere che si propaghino involontariamente anche al caso successivo e il compilatore per evitare ciò segnala l'errore.
Penso sia un errore rilevato solo dalle ultime versioni dei compilatori per questo a lukkino non da problemi.
Ho modificato il codice e creato una piccola patch per chi non vuole modificare il fie a mano.
Basta salvare il file , estrarlo e copiarlo nella directory del plugin e applicare la patch normalmente con patch -p1 < vdr-loadepg-0.2.0-20080501.diff

link patch

Lukkino grazie mille per tutto il lavoro che stai dedicando al plugin che ci permette di avere una guida dei programmi davvero completa e che gli utenti windows o dreambox ancora non hanno. :wink:

Ciao :D
SoGo
Messaggi: 737
Iscritto il: 19 gen 2007, 21:36

Re: epg sly morta

Messaggio da SoGo »

Pizzak ha scritto:Eh, non mi compila proprio, con l' airone maledetto (Xubuntu 8.04) non mi accontenta, dandomi questo errore:

Plugin loadepg:
make[1]: Entering directory `/a/vdr-1.6.0-1/PLUGINS/src/loadepg-0.2.0'
make[1]: Leaving directory `/a/vdr-1.6.0-1/PLUGINS/src/loadepg-0.2.0'
make[1]: Entering directory `/a/vdr-1.6.0-1/PLUGINS/src/loadepg-0.2.0'
g++ -g -O2 -Wall -Woverloaded-virtual -Wno-parentheses -fPIC -c -DUSE_CHANNELSCAN -DUSE_CMDSUBMENU -DUSE_CUTTIME -DUSE_DDEPGENTRY -DUSE_DOLBYINREC -DUSE_JUMPPLAY -DUSE_LIEMIKUUTIO -DUSE_MENUORG -DUSE_PLUGINMISSING -DUSE_SETTIME -DUSE_SORTRECORDS -DUSE_WAREAGLEICON -DUSE_YAEPG -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"loadepg"' -I../../../include loadepg.c
loadepg.c: In member function ‘void cTaskLoadepg::GetChannelsSKYBOX(int, unsigned char*, int)’:
loadepg.c:1444: error: jump to case label
loadepg.c:1434: error: crosses initialisation of ‘int ServiceNameLength’
loadepg.c:1433: error: crosses initialisation of ‘int ServiceProviderNameLength’
loadepg.c:1455: error: jump to case label
loadepg.c:1434: error: crosses initialisation of ‘int ServiceNameLength’
loadepg.c:1433: error: crosses initialisation of ‘int ServiceProviderNameLength’
loadepg.c: In member function ‘void cTaskLoadepg::CreateEpgDataFile()’:
loadepg.c:2593: warning: deprecated conversion from string constant to ‘char*’
loadepg.c:2594: warning: deprecated conversion from string constant to ‘char*’
make[1]: *** [loadepg.o] Error 1
make[1]: Leaving directory `/a/vdr-1.6.0-1/PLUGINS/src/loadepg-0.2.0'

Comprendete? Capite? Soluzioni?

Ciao, Pizzak

a me funge benissimo con ubuntu 8.04.....infatti la prima vdrbox l'ho sostituita.....

potresti dirmi che versione di gcc usi???
Pizzak
Messaggi: 138
Iscritto il: 19 gen 2007, 23:39

Re: epg sly morta

Messaggio da Pizzak »

La patch sembra andare o almeno compila, ma purtroppo non ho potuto controllare se funziona, causa partite in corso, grazie mille grazy :)
Eh, stavolta lukk, non è stato bravo, ma di più, ha compiuto un mezzo miracolo ed ha portato vdr un bel po più avanti del dream per una volta :)


Per sogo ho questa info:

root@vdrbox:/vdr/vdr-1.6.0-1/PLUGINS/src/loadepg-0.2.0# root@vdrbox:/# gcc --version
gcc (GCC) 4.2.3 (Ubuntu 4.2.3-2ubuntu7)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.



ciauz, Pizzak

Video Disk Recorder 1.7.20
Hardware: Scheda madre Asus AT3N7A-I CPU: Atom 330 Proc.Video: ION RAM: 2GB DDR2 800 HDD: 160GB+1TB+512GB(USB)
Software: Debian Wheezy, Drivers Nvidia v270.41.19
toshirikudo
Messaggi: 33
Iscritto il: 20 set 2007, 21:58

Re: epg sly morta

Messaggio da toshirikudo »

Volevo avvisare che l'ultima versione del plugn non compila con vdr 1.7.0 e driver multiproto.

Nello specifico, la riga 912 da un errore

Codice: Seleziona tutto

loadepg.c: In member function 'void cTaskLoadepg::LoadFromSatellite()':
loadepg.c:912: error: no matching function for call to 'cChannel::SetSatTransponderData(int, int&, char&, int&, fe_code_rate)'
../../../include/vdr/channels.h:226: note: candidates are: bool cChannel::SetSatTransponderData(int, int, char, int, int, int, int, int)
Io ho risolto recuperando e modificando la riga da versioni precedenti del plugin in questo modo:

Codice: Seleziona tutto

      //EpgChannel->cChannel::SetSatTransponderData( cSource::FromString( SourceName ), Frequency, Polarization, SymbolRate, FEC_AUTO );
#if APIVERSNUM >= 10514
        EpgChannel->cChannel::SetSatTransponderData( cSource::FromString( SourceName ), Frequency , Polarization, SymbolRate , DVBFE_FEC_AUTO, DVBFE_MOD_AUTO, DVBFE_DELSYS_DVBS, DVBFE_ROLLOFF_UNKNOWN );
#else
EpgChannel->cChannel::SetSatTransponderData( cSource::FromString( SourceName ), Frequency , Polarization, SymbolRate , FEC_AUTO );
#endif
Così non dà errori e il plugin funziona.

PS: Anche io ho dovuto modificare la funzione GetChannelsSKYBOX; ho Debian Etch e gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
lukkino
Messaggi: 1087
Iscritto il: 20 gen 2007, 09:49

Re: epg sly morta

Messaggio da lukkino »

- Per 1.7.0 al momento non funziona e non la prendo per il momento in considerazione.... è una versione troppo di sviluppo....

- Per gli errori che avete è perchè usate compilatori troppo sensibili, il mio vecchio compilatore digerisce tutto... eheh... cmq applicherò la patch

Ciauz :)
VDRBOX: GA-K8NS, AMD Sempron 2600+, Hauppauge Nexus 2.1, LFS
toshirikudo
Messaggi: 33
Iscritto il: 20 set 2007, 21:58

Re: epg sly morta

Messaggio da toshirikudo »

La 1.7.0 con le modifiche che ho apportato funziona correttamente.
SoGo
Messaggi: 737
Iscritto il: 19 gen 2007, 21:36

Re: epg sly morta

Messaggio da SoGo »

Pizzak ha scritto:La patch sembra andare o almeno compila, ma purtroppo non ho potuto controllare se funziona, causa partite in corso, grazie mille grazy :)
Eh, stavolta lukk, non è stato bravo, ma di più, ha compiuto un mezzo miracolo ed ha portato vdr un bel po più avanti del dream per una volta :)


Per sogo ho questa info:

root@vdrbox:/vdr/vdr-1.6.0-1/PLUGINS/src/loadepg-0.2.0# root@vdrbox:/# gcc --version
gcc (GCC) 4.2.3 (Ubuntu 4.2.3-2ubuntu7)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.



ciauz, Pizzak
ripeto a me va senza patch:
root@vdr-desktop:~# gcc --version
gcc (GCC) 4.2.3 (Ubuntu 4.2.3-2ubuntu7)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

root@vdr-desktop:~#
Rispondi