git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
no comment!
[enigma2.git]
/
lib
/
dvb
/
epgcache.cpp
diff --git
a/lib/dvb/epgcache.cpp
b/lib/dvb/epgcache.cpp
index d87a61e1a3485724be33a7210f48043321425f04..a8eca85b5cf598311923c41fdc33b6d69badddf8 100644
(file)
--- a/
lib/dvb/epgcache.cpp
+++ b/
lib/dvb/epgcache.cpp
@@
-2171,14
+2171,20
@@
PyObject *eEPGCache::search(ePyObject arg)
int title_len = data[5];
if ( querytype == 1 )
{
int title_len = data[5];
if ( querytype == 1 )
{
- if (title_len != textlen)
- continue;
int offs = 6;
// skip DVB-Text Encoding!
if (data[6] == 0x10)
int offs = 6;
// skip DVB-Text Encoding!
if (data[6] == 0x10)
- offs+=2;
+ {
+ offs+=3;
+ title_len-=3;
+ }
else if(data[6] > 0 && data[6] < 0x20)
else if(data[6] > 0 && data[6] < 0x20)
+ {
offs+=1;
offs+=1;
+ title_len-=1;
+ }
+ if (title_len != textlen)
+ continue;
if ( casetype )
{
if ( !strncasecmp((const char*)data+offs, str, title_len) )
if ( casetype )
{
if ( !strncasecmp((const char*)data+offs, str, title_len) )