diff options
author | Dimitar Petrovski <dimeptr@gmail.com> | 2012-10-21 21:52:20 +0200 |
---|---|---|
committer | Dimitar Petrovski <dimeptr@gmail.com> | 2012-10-21 21:52:20 +0200 |
commit | 16803744f86b3580ce8b80595a361ee3ba2ea3b3 (patch) | |
tree | 3e07ab3eb5f29f0ee2ee1e228d2f9693cedcc492 | |
parent | 26555852b2a8a840d2ccc1e91bbdbed1c46e838e (diff) | |
download | vdr-plugin-eepg-16803744f86b3580ce8b80595a361ee3ba2ea3b3.tar.gz vdr-plugin-eepg-16803744f86b3580ce8b80595a361ee3ba2ea3b3.tar.bz2 |
removed commented code
change the way the duplicate event is deleted
-rw-r--r-- | epghandler.c | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/epghandler.c b/epghandler.c index 5f10a3c..924b4df 100644 --- a/epghandler.c +++ b/epghandler.c @@ -63,7 +63,8 @@ bool cEEpgHandler::HandleEitEvent(cSchedule* Schedule, origDescription = ev->Description(); if (ev->ShortText() && strcmp(ev->ShortText(),"") != 0) origShortText = ev->ShortText(); - Schedule->DropOutdated(ev->StartTime()-1,ev->EndTime()+1,ev->TableID()-1,ev->Version()); + Schedule->DelEvent((cEvent *) ev); +// Schedule->DropOutdated(ev->StartTime()-1,ev->EndTime()+1,ev->TableID()-1,ev->Version()); LogD(0, prep("!!!End Deleting Event")); //TODO equivalent channels !!! } @@ -166,13 +167,6 @@ bool cEEpgHandler::HandleEvent(cEvent* Event) { if (modified) equivHandler->updateEquivalent(Event->ChannelID(), Event); -// cSchedulesLock SchedulesLock (true); -// cSchedules *s = (cSchedules *) cSchedules::Schedules (SchedulesLock); -// if (s) { -// equivHandler->updateEquivalent(s, Event->ChannelID(), Event); -// } else -// LogE (0, prep("Error: could not lock schedules.")); - //TODO just to see the difference //else if (!origDescription.empty() && !origDescription.compare(Event->Description())) { // origDescription.append(" | EIT: "); @@ -188,14 +182,6 @@ bool cEEpgHandler::SortSchedule(cSchedule* Schedule) { Schedule->Sort(); - //NOK -// cSchedulesLock SchedulesLock (true); -// cSchedules *s = (cSchedules *) cSchedules::Schedules (SchedulesLock); -// if (s) { -// equivHandler->sortEquivalents(Schedule->ChannelID(), s); -// } else -// LogE (0, prep("Error: could not lock schedules.")); - return true; } |