neutrino.cpp: avoid webtv duplicates

This commit is contained in:
[CST] Focus
2014-09-10 16:21:10 +04:00
parent 7c15db185f
commit 247e38a204
2 changed files with 2 additions and 1 deletions

View File

@@ -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++) {

View File

@@ -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;