diff options
author | louis <louis.braun@gmx.de> | 2013-10-06 22:37:40 +0200 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2013-10-06 22:37:40 +0200 |
commit | 1af52dd83848d4f576f84dbf3871f7e670feb787 (patch) | |
tree | cc794085e77d8e8cf95d02df7851b5a6b7116c35 | |
parent | 1d163810d6b2580cc970e0b84039f6aa05cc3a8c (diff) | |
download | vdr-plugin-tvscraper-1af52dd83848d4f576f84dbf3871f7e670feb787.tar.gz vdr-plugin-tvscraper-1af52dd83848d4f576f84dbf3871f7e670feb787.tar.bz2 |
Fixed a crash if a configured channel to scrap does not exist anymore
-rw-r--r-- | HISTORY | 2 | ||||
-rw-r--r-- | worker.c | 2 |
2 files changed, 4 insertions, 0 deletions
@@ -41,3 +41,5 @@ Version 0.0.5 - Fixed a crash if internet connection is not available Version 0.1.0 +- Fixed a crash if a configured channel to scrap does not + exist anymore @@ -131,6 +131,8 @@ void cTVScraperWorker::ScrapEPG(void) { for (int i=0; i<numChannels; i++) { string channelID = channels[i]; const cChannel *channel = Channels.GetByChannelID(tChannelID::FromString(channelID.c_str())); + if (!channel) + continue; dsyslog("tvscraper: scraping Channel %s %s", channel->Name(), channelID.c_str()); cSchedulesLock schedulesLock; const cSchedules *schedules = cSchedules::Schedules(schedulesLock); |