diff options
author | Jochen Dolze <vdr@dolze.de> | 2012-06-14 11:14:02 +0200 |
---|---|---|
committer | Jochen Dolze <vdr@dolze.de> | 2012-06-14 11:14:02 +0200 |
commit | fed74466810d208a14771c3468c4f480e491ddee (patch) | |
tree | c33fdc453a640746486857634b614703d8ed36ae | |
parent | e6201c4aed1d397df6e27253f7fba0fb99776ef3 (diff) | |
download | vdr-plugin-xmltv2vdr-fed74466810d208a14771c3468c4f480e491ddee.tar.gz vdr-plugin-xmltv2vdr-fed74466810d208a14771c3468c4f480e491ddee.tar.bz2 |
Fixed xmltv eventid bug
-rw-r--r-- | parse.cpp | 5 | ||||
-rw-r--r-- | xmltv2vdr.cpp | 2 |
2 files changed, 4 insertions, 3 deletions
@@ -308,7 +308,7 @@ bool cParse::FetchEvent(xmlNodePtr enode, bool useeptext) char *eq=strchr((char *) pid,'='); if (eq) { - xevent.SetEventID(atol(eq+6)); + xevent.SetEventID((tEventID) atol(eq+1)); } } } @@ -407,7 +407,8 @@ bool cParse::FetchEvent(xmlNodePtr enode, bool useeptext) { if (isdigit(content[0])) { - xevent.SetEventID(atol((const char *) content)); + if (!xevent.EventID()) + xevent.SetEventID((tEventID) atol((const char *) content)); } else { diff --git a/xmltv2vdr.cpp b/xmltv2vdr.cpp index 2f2ac9e..b514818 100644 --- a/xmltv2vdr.cpp +++ b/xmltv2vdr.cpp @@ -424,7 +424,7 @@ bool cEPGHandler::SetDescription(cEvent* Event, const char* Description) if (!Description) return true; // prevent setting nothing to description int len=strlen(Description); if (!len) return true; // prevent setting nothing to description - if (strncasecmp(Event->Description(),Description,len)) + if (!strcasestr(Event->Description(),Description)) { // eit description changed -> set it tsyslog("{%5i} %schanging descr of '%s'",Event->EventID(),seth ? "*" : "", |