diff options
author | Jochen Dolze <vdr@dolze.de> | 2012-05-19 17:57:50 +0200 |
---|---|---|
committer | Jochen Dolze <vdr@dolze.de> | 2012-05-19 17:57:50 +0200 |
commit | fba8c36e477d8b149b9ea78221f8397d04f849e5 (patch) | |
tree | be77731c7d239af4e0b094e2578a8df8a9e57142 /setup.cpp | |
parent | b05fade925bd301abd7310d55daf33cfe7078714 (diff) | |
download | vdr-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.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -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); |