zapit/src/getservices.cpp: load cable NID from cables.xml

This commit is contained in:
[CST] Focus
2012-07-31 18:13:21 +04:00
parent b7cc224fa2
commit 066cdd0e27

View File

@@ -580,6 +580,7 @@ bool CServiceManager::InitSatPosition(t_satellite_position position, char * name
satellitePositions[position].use_usals = 0; satellitePositions[position].use_usals = 0;
satellitePositions[position].input = 0; satellitePositions[position].input = 0;
satellitePositions[position].configured = 0; satellitePositions[position].configured = 0;
satellitePositions[position].cable_nid = 0;
if(name) if(name)
satellitePositions[position].name = name; satellitePositions[position].name = name;
return true; return true;
@@ -624,6 +625,7 @@ bool CServiceManager::LoadServices(bool only_current)
} else if(!(strcmp(xmlGetName(search), "cable"))) { } else if(!(strcmp(xmlGetName(search), "cable"))) {
char * name = xmlGetAttribute(search, "name"); char * name = xmlGetAttribute(search, "name");
InitSatPosition(position, name); InitSatPosition(position, name);
satellitePositions[position].cable_nid = xmlGetNumericAttribute(search, "nid", 0);
} }
ParseSatTransponders(frontendType, search, position); ParseSatTransponders(frontendType, search, position);
position++; position++;