Skip to content

Commit

Permalink
[epgcache]
Browse files Browse the repository at this point in the history
* don't read config.epg.saveepg on close

(cherry picked from commit 8b93ba5fcb63a6a7de25936b9ad31af4a279181b)
  • Loading branch information
jbleyel authored and henrylicious committed Oct 9, 2024
1 parent 72769d5 commit ad9845d
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 ad9845d

Please sign in to comment.