src/zapit/src/getservices.cpp: try to fix satellite services load

in case service.xml and satellites.xml have different sat names
This commit is contained in:
[CST] Focus
2013-06-29 14:47:04 +04:00
parent f7ff06485f
commit 9827f03601

View File

@@ -470,17 +470,21 @@ void CServiceManager::FindTransponder(xmlNodePtr search)
while (search) {
fe_type_t delsys = FE_QPSK;
if (!(strcmp(xmlGetName(search), "cable")))
t_satellite_position satellitePosition = xmlGetSignedNumericAttribute(search, "position", 10);
if (!(strcmp(xmlGetName(search), "cable"))) {
delsys = FE_QAM;
char * name = xmlGetAttribute(search, "name");
satellitePosition = GetSatellitePosition(name);
}
else if ((strcmp(xmlGetName(search), "sat"))) {
search = search->xmlNextNode;
continue;
}
#if 0
//t_satellite_position satellitePosition = xmlGetSignedNumericAttribute(search, "position", 10);
char * name = xmlGetAttribute(search, "name");
t_satellite_position satellitePosition = GetSatellitePosition(name);
#endif
DBG("going to parse dvb-%c provider %s\n", xmlGetName(search)[0], xmlGetAttribute(search, "name"));
ParseTransponders(search->xmlChildrenNode, satellitePosition, delsys);
newfound++;