mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
add option to read saved epg data frequently
This commit is contained in:
@@ -559,8 +559,9 @@ int CNeutrinoApp::loadSetup(const char * fname)
|
||||
|
||||
g_settings.epg_save = configfile.getBool("epg_save", false);
|
||||
g_settings.epg_save_standby = configfile.getBool("epg_save_standby", true);
|
||||
g_settings.epg_save_frequently = configfile.getInt32("epg_save_frequently", false);
|
||||
g_settings.epg_save_frequently = configfile.getInt32("epg_save_frequently", 0);
|
||||
g_settings.epg_read = configfile.getBool("epg_read", g_settings.epg_save);
|
||||
g_settings.epg_read_frequently = configfile.getInt32("epg_read_frequently", 0);
|
||||
g_settings.epg_scan = configfile.getInt32("epg_scan", CEpgScan::SCAN_CURRENT);
|
||||
g_settings.epg_scan_mode = configfile.getInt32("epg_scan_mode", CEpgScan::MODE_OFF);
|
||||
// backward-compatible check
|
||||
@@ -1146,6 +1147,7 @@ void CNeutrinoApp::saveSetup(const char * fname)
|
||||
configfile.setBool("epg_save_standby", g_settings.epg_save_standby);
|
||||
configfile.setInt32("epg_save_frequently", g_settings.epg_save_frequently);
|
||||
configfile.setBool("epg_read", g_settings.epg_read);
|
||||
configfile.setInt32("epg_read_frequently", g_settings.epg_read_frequently);
|
||||
configfile.setInt32("epg_scan", g_settings.epg_scan);
|
||||
configfile.setInt32("epg_scan_mode", g_settings.epg_scan_mode);
|
||||
configfile.setInt32("epg_save_mode", g_settings.epg_save_mode);
|
||||
@@ -1839,6 +1841,7 @@ void CNeutrinoApp::MakeSectionsdConfig(CSectionsdClient::epg_config& config)
|
||||
config.epg_max_events = g_settings.epg_max_events;
|
||||
config.epg_extendedcache = g_settings.epg_extendedcache;
|
||||
config.epg_save_frequently = g_settings.epg_save ? g_settings.epg_save_frequently : 0;
|
||||
config.epg_read_frequently = g_settings.epg_read ? g_settings.epg_read_frequently : 0;
|
||||
config.epg_dir = g_settings.epg_dir;
|
||||
config.network_ntpserver = g_settings.network_ntpserver;
|
||||
config.network_ntprefresh = atoi(g_settings.network_ntprefresh.c_str());
|
||||
@@ -1857,6 +1860,7 @@ void CNeutrinoApp::InitZapper()
|
||||
struct stat my_stat;
|
||||
|
||||
g_InfoViewer->start();
|
||||
SendSectionsdConfig();
|
||||
if (g_settings.epg_read) {
|
||||
if(stat(g_settings.epg_dir.c_str(), &my_stat) == 0)
|
||||
g_Sectionsd->readSIfromXML(g_settings.epg_dir.c_str());
|
||||
|
Reference in New Issue
Block a user