Hello
On site http://www.kikko77.altervista.org/ in the section download, is available the new version of LoadEPG.
History: 2007-07-26: Version 0.1.11 - Fixed for new format epg of Digital+ (S19.2E Spain)
Hello, Luca :-)
___________________________________ L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: http://it.docs.yahoo.com/nowyoucan.html
En/na lukkinosat ha escrit:
Hello
On site http://www.kikko77.altervista.org/ in the section download, is available the new version of LoadEPG.
History: 2007-07-26: Version 0.1.11
- Fixed for new format epg of Digital+ (S19.2E Spain)
Since vdr 1.5.x changed the numbering of the cards if there are softdevices, I changed it to look for the card using the CardIndex (patch attached, in case you want to take a look), but it doesn't work anyway: it switches to the transponder with the epg, then it switches back instantly to the previous one, so it obviously doesn't get any data. If I change the function cLoadepgOsd::SwitchToEpgChannel (and only that function) to use cDevice::PrimaryDevice() to do the switching then everything works as expected (well, special characters show up as little squares in accents in the epg, but I'll look into that).
Bye
En/na Luca Olivetti ha escrit:
If I change the function cLoadepgOsd::SwitchToEpgChannel (and only that function) to use cDevice::PrimaryDevice() to do the switching then everything works as expected (well, special characters show up as little squares in accents in the epg, but I'll look into that).
I made a crude hack: I assume that the epg is in ISO-8859-15, so if SystemCharacterTable is different than iso-8859-15, I call iconv to convert the file in cLoadepgOsd::SaveEpg, just before the LoadFile label:
fclose( File ); const char *syschar=cCharSetConv::SystemCharacterTable(); if (syschar==NULL || !strcasestr(syschar, "ISO-8859-15")) { char *cmd; asprintf(&cmd, "iconv -f ISO-8859-15 -t %s -o "%s.converted" "%s"", syschar ? syschar : "UTF-8",FileName,FileName); SystemExec(cmd); free(cmd); asprintf(&cmd, "mv "%s.converted" "%s"", FileName,FileName); SystemExec(cmd); free(cmd); } } LoadFile:;
--- Luca Olivetti luca@ventoso.org ha scritto:
I made a crude hack: I assume that the epg is in ISO-8859-15, so if SystemCharacterTable is different than iso-8859-15, I call iconv to convert the file in cLoadepgOsd::SaveEpg, just before the LoadFile label:
[CUT]
Hi
The epg is ISO-8859-15. I must still try with vdr version 1.5.x. As soon as I can I make you to know :-)
Do you speak italian?
Hello, Luca
___________________________________ L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: http://it.docs.yahoo.com/nowyoucan.html
En/na lukkinosat ha escrit:
--- Luca Olivetti luca@ventoso.org ha scritto:
I made a crude hack: I assume that the epg is in ISO-8859-15, so if SystemCharacterTable is different than iso-8859-15, I call iconv to convert the file in cLoadepgOsd::SaveEpg, just before the LoadFile label:
[CUT]
Hi
The epg is ISO-8859-15. I must still try with vdr version 1.5.x.
Well, with the previous patch, the iconv hack and using cDevice::PrimaryDevice() to tune to the epg channel, everything is working fine here. For a more general solution I suppose I'll have to do the same I did in my actuator plugin (use cDevice::PrimaryDevice() only if the selected device is ActualDevice and provides the needed channel). I'll look into it and post a revised patch.
As soon as I can I make you to know :-)
Do you speak italian?
Yes, I do
Bye
En/na Luca Olivetti ha escrit:
En/na lukkinosat ha escrit:
--- Luca Olivetti luca@ventoso.org ha scritto:
I made a crude hack: I assume that the epg is in ISO-8859-15, so if SystemCharacterTable is different than iso-8859-15, I call iconv to convert the file in cLoadepgOsd::SaveEpg, just before the LoadFile label:
[CUT]
Hi
The epg is ISO-8859-15. I must still try with vdr version 1.5.x.
Well, with the previous patch, the iconv hack and using cDevice::PrimaryDevice() to tune to the epg channel, everything is working fine here. For a more general solution I suppose I'll have to do the same I did in my actuator plugin (use cDevice::PrimaryDevice() only if the selected device is ActualDevice and provides the needed channel). I'll look into it and post a revised patch.
Here it is. It should work for 1.4.x as well as for 1.5.x (but I only tested it with 1.5.6 and a single dvb card, so YMMV).
Bye