diff options
author | Jochen Dolze <vdr@dolze.de> | 2011-01-23 17:57:31 +0100 |
---|---|---|
committer | Jochen Dolze <vdr@dolze.de> | 2011-01-23 17:57:31 +0100 |
commit | 795716f16830d24eddb39fdd735ede9a3a751728 (patch) | |
tree | 16e5ed82f30eac54c38ac4bef8acb6f138de4fa8 | |
parent | ba419b0b9694ba59869cbdf47d46d1b0a28e5c84 (diff) | |
download | vdr-plugin-xmltv2vdr-795716f16830d24eddb39fdd735ede9a3a751728.tar.gz vdr-plugin-xmltv2vdr-795716f16830d24eddb39fdd735ede9a3a751728.tar.bz2 |
Save epg.data after successful import
-rw-r--r-- | xmltv2vdr.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xmltv2vdr.cpp b/xmltv2vdr.cpp index ea9756d..443be17 100644 --- a/xmltv2vdr.cpp +++ b/xmltv2vdr.cpp @@ -47,10 +47,12 @@ cEPGExecutor::cEPGExecutor(cEPGSources *Sources) : cThread("xmltv2vdr importer") void cEPGExecutor::Action() { if (!sources) return; + bool ret=false; for (cEPGSource *epgs=sources->First(); epgs; epgs=sources->Next(epgs)) { - if (epgs->Execute()) break; // TODO: check if we must execute second/third source! + if ((ret=epgs->Execute())) break; // TODO: check if we must execute second/third source! } + if (ret) cSchedules::Cleanup(true); } // ------------------------------------------------------------- |