mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-01 09:51:13 +02:00
add settings for xmltv epg
todo:
GUI
for testing edit your neutrino.conf:
webtv_xml_0=http://<remoteboxip>/control/xmltv.m3u
webtv_xml_count=1
webepg_0=http://<remoteboxip>/control/xmltv.xml
webepg_count=1
Origin commit data
------------------
Commit: 0d94093ec7
Author: TangoCash <eric@loxat.de>
Date: 2018-09-01 (Sat, 01 Sep 2018)
This commit is contained in:
@@ -775,6 +775,18 @@ int CNeutrinoApp::loadSetup(const char * fname)
|
|||||||
CWebTVSetup webtvsetup;
|
CWebTVSetup webtvsetup;
|
||||||
webtvsetup.webtv_xml_auto();
|
webtvsetup.webtv_xml_auto();
|
||||||
|
|
||||||
|
g_settings.web_epg.clear();
|
||||||
|
int webepg_count = configfile.getInt32("webepg_count", 0);
|
||||||
|
if (webepg_count) {
|
||||||
|
for (int i = 0; i < webepg_count; i++) {
|
||||||
|
std::string k = "webepg_" + to_string(i);
|
||||||
|
std::string web_epg = configfile.getString(k, "");
|
||||||
|
if (web_epg.empty())
|
||||||
|
continue;
|
||||||
|
g_settings.web_epg.push_back(web_epg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
g_settings.webradio_xml.clear();
|
g_settings.webradio_xml.clear();
|
||||||
#ifndef BOXMODEL_CS_HD1
|
#ifndef BOXMODEL_CS_HD1
|
||||||
/*
|
/*
|
||||||
@@ -1562,6 +1574,14 @@ void CNeutrinoApp::saveSetup(const char * fname)
|
|||||||
}
|
}
|
||||||
configfile.setInt32 ( "webtv_xml_count", webtv_count); //NI
|
configfile.setInt32 ( "webtv_xml_count", webtv_count); //NI
|
||||||
|
|
||||||
|
int webepg_count = 0;
|
||||||
|
for (std::list<std::string>::iterator it = g_settings.web_epg.begin(); it != g_settings.web_epg.end(); ++it) {
|
||||||
|
std::string k = "webepg_" + to_string(webepg_count);
|
||||||
|
configfile.setString(k, *it);
|
||||||
|
webepg_count++;
|
||||||
|
}
|
||||||
|
configfile.setInt32 ( "webepg_count", g_settings.web_epg.size());
|
||||||
|
|
||||||
saveKeys();
|
saveKeys();
|
||||||
|
|
||||||
configfile.setInt32( "timeshift_pause", g_settings.timeshift_pause );
|
configfile.setInt32( "timeshift_pause", g_settings.timeshift_pause );
|
||||||
@@ -2754,6 +2774,9 @@ TIMER_STOP("################################## after all #######################
|
|||||||
CFlashUpdateCheck::getInstance()->startThread();
|
CFlashUpdateCheck::getInstance()->startThread();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (std::list<std::string>::iterator it = g_settings.web_epg.begin(); it != g_settings.web_epg.end(); ++it)
|
||||||
|
g_Sectionsd->readSIfromIPTVXML((*it).c_str());
|
||||||
|
|
||||||
RealRun();
|
RealRun();
|
||||||
ExitRun(g_info.hw_caps->can_shutdown);
|
ExitRun(g_info.hw_caps->can_shutdown);
|
||||||
|
|
||||||
|
@@ -329,6 +329,7 @@ struct SNeutrinoSettings
|
|||||||
|
|
||||||
std::list<std::string> webtv_xml;
|
std::list<std::string> webtv_xml;
|
||||||
std::list<std::string> webradio_xml;
|
std::list<std::string> webradio_xml;
|
||||||
|
std::list<std::string> web_epg;
|
||||||
|
|
||||||
//personalize
|
//personalize
|
||||||
enum PERSONALIZE_SETTINGS //settings.h
|
enum PERSONALIZE_SETTINGS //settings.h
|
||||||
|
Reference in New Issue
Block a user