- neutrino: show saveEpg-message in shutdown mode too

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2019-03-27 21:37:14 +01:00
committed by Thilo Graf
parent 17b57d0914
commit 2662dcf7b8
2 changed files with 6 additions and 2 deletions

View File

@@ -4220,7 +4220,7 @@ void CNeutrinoApp::saveEpg(int _mode)
{ {
if (_mode == NeutrinoModes::mode_standby) if (_mode == NeutrinoModes::mode_standby)
{ {
// skip save epg in standby mode, if last saveepg time < 15 Min. // skip save epg in standby mode, if last saveepg time < 15 minutes
std::string index_xml = g_settings.epg_dir.c_str(); std::string index_xml = g_settings.epg_dir.c_str();
index_xml += "/index.xml"; index_xml += "/index.xml";
time_t t=0; time_t t=0;
@@ -4234,6 +4234,10 @@ void CNeutrinoApp::saveEpg(int _mode)
CVFD::getInstance()->setMode(CVFD::MODE_TVRADIO); CVFD::getInstance()->setMode(CVFD::MODE_TVRADIO);
CVFD::getInstance()->ShowText(g_Locale->getText(LOCALE_EPG_SAVING)); CVFD::getInstance()->ShowText(g_Locale->getText(LOCALE_EPG_SAVING));
CVFD::getInstance()->Clear();
//NI CVFD::getInstance()->setMode(CVFD::MODE_TVRADIO);
CVFD::getInstance()->ShowText(g_Locale->getText(LOCALE_EPG_SAVING));
printf("[neutrino] Saving EPG to %s...\n", g_settings.epg_dir.c_str()); printf("[neutrino] Saving EPG to %s...\n", g_settings.epg_dir.c_str());
g_Sectionsd->writeSI2XML(g_settings.epg_dir.c_str()); g_Sectionsd->writeSI2XML(g_settings.epg_dir.c_str());

View File

@@ -165,7 +165,7 @@ bool CFlashTool::program( const std::string & filename, int globalProgressEndEra
int globalProgressBegin = 0; int globalProgressBegin = 0;
if(g_settings.epg_save) if(g_settings.epg_save)
CNeutrinoApp::getInstance()->saveEpg(true); CNeutrinoApp::getInstance()->saveEpg(NeutrinoModes::mode_off);
if(statusViewer) if(statusViewer)
statusViewer->showLocalStatus(0); statusViewer->showLocalStatus(0);