mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
- miscsettings-menu: read xmltv too when user requests a re-reading of epg
Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -142,8 +142,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