Skip to content

Commit

Permalink
Do not read epg.dat when imported from fallback tuner
Browse files Browse the repository at this point in the history
As when this is done immediatelly it can interfere with getting the epg.dat from the fallback tuner.
Read discussion here https://forums.openpli.org/topic/62015-fallbacktuner-import-services-epg/page-2
  • Loading branch information
littlesat committed Sep 2, 2018
1 parent cabff59 commit 4343d65
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/dvb/epgcache.cpp
Expand Up @@ -382,6 +382,8 @@ eEPGCache::eEPGCache()
{
eDebug("[eEPGCache] Initialized EPGCache (wait for setCacheFile call now)");

load_epg = eConfigManager::getConfigValue("config.usage.remote_fallback_import").find("epg") == std::string::npos;

enabledSources = 0;
historySeconds = 0;

Expand Down Expand Up @@ -1282,7 +1284,7 @@ void eEPGCache::thread()
{
hasStarted();
nice(4);
load();
if (load_epg) { load(); }
cleanLoop();
runLoop();
save();
Expand Down
1 change: 1 addition & 0 deletions lib/dvb/epgcache.h
Expand Up @@ -285,6 +285,7 @@ class eEPGCache: public eMainloop, private eThread, public sigc::trackable
updateMap channelLastUpdated;
std::string m_filename;
bool m_running;
bool load_epg;

#ifdef ENABLE_PRIVATE_EPG
contentMaps content_time_tables;
Expand Down

0 comments on commit 4343d65

Please sign in to comment.