diff options
-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); |