mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-18 02:43:42 +02:00
neutrino.cpp: avoid webtv duplicates
This commit is contained in:
@@ -673,6 +673,7 @@ int CNeutrinoApp::loadSetup(const char * fname)
|
||||
|
||||
g_settings.logo_hdd_dir = configfile.getString( "logo_hdd_dir", "/media/sda1/logos" );
|
||||
|
||||
g_settings.webtv_xml.clear();
|
||||
int webtv_count = configfile.getInt32("webtv_xml_count", 0);
|
||||
if (webtv_count) {
|
||||
for (int i = 0; i < webtv_count; i++) {
|
||||
|
@@ -931,7 +931,7 @@ bool CServiceManager::LoadServices(bool only_current)
|
||||
if (webtv_xml) {
|
||||
for (std::list<std::string>::iterator it = webtv_xml->begin(); it != webtv_xml->end(); ++it) {
|
||||
if (!access((*it).c_str(), R_OK)) {
|
||||
INFO("Loading webtv...");
|
||||
INFO("Loading webtv from %s ...", (*it).c_str());
|
||||
parser = parseXmlFile((*it).c_str());
|
||||
if (parser == NULL)
|
||||
continue;
|
||||
|
Reference in New Issue
Block a user