mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 07:51:11 +02:00
miscsettings-menu: read xmltv too when user requests a re-reading of epg
Origin commit data
------------------
Branch: ni/coolstream
Commit: aa5faeca05
Author: vanhofen <vanhofen@gmx.de>
Date: 2018-09-01 (Sat, 01 Sep 2018)
Origin message was:
------------------
- miscsettings-menu: read xmltv too when user requests a re-reading of epg
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -149,8 +149,19 @@ int CMiscMenue::exec(CMenuTarget* parent, const std::string &actionKey)
|
||||
}
|
||||
else if(actionKey == "epg_read_now")
|
||||
{
|
||||
printf("Reading epg cache from %s....\n", g_settings.epg_dir.c_str());
|
||||
g_Sectionsd->readSIfromXML(g_settings.epg_dir.c_str());
|
||||
struct stat my_stat;
|
||||
if (stat(g_settings.epg_dir.c_str(), &my_stat) == 0)
|
||||
{
|
||||
printf("Reading epg cache from %s ...\n", g_settings.epg_dir.c_str());
|
||||
g_Sectionsd->readSIfromXML(g_settings.epg_dir.c_str());
|
||||
}
|
||||
|
||||
for (std::list<std::string>::iterator it = g_settings.xmltv_xml.begin(); it != g_settings.xmltv_xml.end(); ++it)
|
||||
{
|
||||
printf("Reading xmltv epg from %s ...\n", (*it).c_str());
|
||||
g_Sectionsd->readSIfromXMLTV((*it).c_str());
|
||||
}
|
||||
|
||||
return menu_return::RETURN_REPAINT;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user