summaryrefslogtreecommitdiff
path: root/setup.cpp
diff options
context:
space:
mode:
authorJochen Dolze <vdr@dolze.de>2012-05-19 17:57:50 +0200
committerJochen Dolze <vdr@dolze.de>2012-05-19 17:57:50 +0200
commitfba8c36e477d8b149b9ea78221f8397d04f849e5 (patch)
treebe77731c7d239af4e0b094e2578a8df8a9e57142 /setup.cpp
parentb05fade925bd301abd7310d55daf33cfe7078714 (diff)
downloadvdr-plugin-xmltv2vdr-fba8c36e477d8b149b9ea78221f8397d04f849e5.tar.gz
vdr-plugin-xmltv2vdr-fba8c36e477d8b149b9ea78221f8397d04f849e5.tar.bz2
Changed search algo for existing events (max. difftime 780s)
Improved log output
Diffstat (limited to 'setup.cpp')
-rw-r--r--setup.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/setup.cpp b/setup.cpp
index af847b4..4180f1a 100644
--- a/setup.cpp
+++ b/setup.cpp
@@ -147,7 +147,19 @@ void cMenuSetupXmltv2vdr::Output(void)
cEPGMapping *map=baseplugin->EPGMapping(channels[i]);
if (map)
{
- if (map->NumChannelIDs()) mapped=true;
+ for (int x=0; x<map->NumChannelIDs(); x++)
+ {
+ cChannel *chan=Channels.GetByChannelID(map->ChannelIDs()[x]);
+ if (chan)
+ {
+ mapped=true;
+ }
+ else
+ {
+ // invalid channelid? remove from list
+ map->RemoveChannel(map->ChannelIDs()[x],true);
+ }
+ }
}
cString buffer = cString::sprintf("%s:\t%s",channels[i],mapped ? tr("mapped") : "");
Add(new cOsdItem(buffer),true);