Skip to content

Commit

Permalink
Reapply "[epgcache]"
Browse files Browse the repository at this point in the history
This reverts commit 5ede52a.
  • Loading branch information
koivo committed Feb 2, 2025
1 parent 5ede52a commit bac68c5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
14 changes: 8 additions & 6 deletions lib/dvb/epgcache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,10 @@ eEPGCache::eEPGCache()
onid_blacklist.insert(onid_blacklist.end(),1,tmp_onid);
onid_file.close();

instance=this;
m_debug = eConfigManager::getConfigBoolValue("config.crash.debugEPG");
m_saveepg = eConfigManager::getConfigBoolValue("config.epg.saveepg");

instance = this;
}

void eEPGCache::setCacheFile(const char *path)
Expand Down Expand Up @@ -1097,11 +1100,10 @@ void eEPGCache::load()

void eEPGCache::save()
{
#ifdef EPG_DEBUG
eDebug("[eEPGCache] save()");
#endif
bool save_epg = eConfigManager::getConfigBoolValue("config.epg.saveepg", true);
if (save_epg)
if(m_debug)
eDebug("[eEPGCache] save()");

if (m_saveepg)
{
if (eventData::isCacheCorrupt)
return;
Expand Down
2 changes: 2 additions & 0 deletions lib/dvb/epgcache.h
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ class eEPGCache: public eMainloop, private eThread, public sigc::trackable
ePtr<eTimer> cleanTimer;
bool load_epg;
PSignal0<void> epgCacheStarted;
bool m_debug;
bool m_saveepg;

#ifdef ENABLE_PRIVATE_EPG
contentMaps content_time_tables;
Expand Down

0 comments on commit bac68c5

Please sign in to comment.