aboutsummaryrefslogtreecommitdiff
path: root/lib/dvb/epgcache.cpp
diff options
context:
space:
mode:
authorghost <andreas.monzner@multimedia-labs.de>2009-01-25 00:24:17 +0100
committerghost <andreas.monzner@multimedia-labs.de>2009-01-25 00:24:17 +0100
commit8fa5e30ad4f92d0874c6dbac92da3b61c9bd853c (patch)
treedb77b835cc2e8fc133298b9d45d0dc0547733773 /lib/dvb/epgcache.cpp
parentde1ba139d6a6f552464f98a207881c02117a6f19 (diff)
downloadenigma2-8fa5e30ad4f92d0874c6dbac92da3b61c9bd853c.tar.gz
enigma2-8fa5e30ad4f92d0874c6dbac92da3b61c9bd853c.zip
another exact title search in epgache fix
Diffstat (limited to 'lib/dvb/epgcache.cpp')
-rw-r--r--lib/dvb/epgcache.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/dvb/epgcache.cpp b/lib/dvb/epgcache.cpp
index 20767d37..6ab20bda 100644
--- 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 )
{
- if (title_len != textlen)
- continue;
int offs = 6;
// skip DVB-Text Encoding!
if (data[6] == 0x10)
+ {
offs+=3;
+ textlen-=3;
+ }
else if(data[6] > 0 && data[6] < 0x20)
+ {
offs+=1;
+ textlen-=1;
+ }
+ if (title_len != textlen)
+ continue;
if ( casetype )
{
if ( !strncasecmp((const char*)data+offs, str, title_len) )