The problem I am having is every time I find an event with no title, next time I try to use it to debug the title is there.I will take a look and see if I can figure out what is going on.
Did you have a look at this report?
http://openpli.org/f...__fromsearch__1
Any idea what might have broken multi-language epg?
All though I am a little perplexed by the issue at the moment.
eepgcache and title searching
Re: eepgcache and title searching #41
Posted 21 January 2012 - 12:47
Re: eepgcache and title searching #42
Re: eepgcache and title searching #43
Re: eepgcache and title searching #44
Re: eepgcache and title searching #45
Re: eepgcache and title searching #46
Re: eepgcache and title searching #47
Re: eepgcache and title searching #48
Re: eepgcache and title searching #49
Re: eepgcache and title searching #50
Posted 21 January 2012 - 13:34
Could you try this patch
so looking at it closer you have a good point here, the length calculation may be wrong.
eDebug("+++ eventNameUTF8len: %d", eventNameUTF8len);
+++ eventNameUTF8len: 38
I know :-)
for "í" it count 2 chars, but it is as one char only in debug
Also if anyone else could test this out that would be great
Attached Files
Re: eepgcache and title searching #51
Re: eepgcache and title searching #52
Posted 21 January 2012 - 13:40
Yes, you should be able to use that with it as well.I have aplied your last patches from morning. This can be used for it ?
In the patch from the morning there are 3 new if statements added, maybe you can add a line in there like eDebug("short event descriptor is too short skipping");
This way we can also see if there is any bad data that is being thrown away.
Re: eepgcache and title searching #53
Re: eepgcache and title searching #54
Re: eepgcache and title searching #55
Re: eepgcache and title searching #56
Posted 21 January 2012 - 19:21
Could you explain where you are chaining the length to -2Same. Still returns for example 38, must be 36
Problem is in length really. When I change lenght -2, it helps for example top.
as I don't see that this would cause a problem of no titles
if your length was too long but its calculated like this everywhere then you end up wasting 2 bytes more and having garbage data at the end of your text but not an empty title
There are some short event descriptors that don't have a title at all, I have confirmed this much.
Re: eepgcache and title searching #57
Re: eepgcache and title searching #58
Posted 21 January 2012 - 19:48
All is displayed, when I changing length -2 (for some title is enought -1) after line:
std::string eventNameUTF8 = replace_all(replace_all(convertDVBUTF8((const char*)&descr[6], eventNameLen, table, tsidonid, &eventNameUTF8len), "\n", " "), "\t", " ");
of course, then are cutted others titles, but all titles are displayed.
Note: must not be in estring.cpp imho. Never saw eventNameUTF8len != eventNameLen:
if( NULL != return_byte_len )
*return_byte_len = t;
and then it must not be in header of fce.
Re: eepgcache and title searching #59
Posted 21 January 2012 - 19:51
I don't think its in the header of the descriptor either as this seems to be fine.it is strange.
All is displayed, when I changing length -2 (for some title is enought -1) after line:
std::string eventNameUTF8 = replace_all(replace_all(convertDVBUTF8((const char*)&descr[6], eventNameLen, table, tsidonid, &eventNameUTF8len), "\n", " "), "\t", " ");
of course, then are cutted others titles, but all titles are displayed.
Note: must not be in estring.cpp imho. Never saw eventNameUTF8len != eventNameLen:
if( NULL != return_byte_len )
*return_byte_len = t;
and then it must not be in header of fce.
So only place is the conversion and copying to new data array
Perhaps the rebuilding is wrong, but I can't see the error at the moment
Re: eepgcache and title searching #60
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users