mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 01:11:12 +02:00
zapit/src/getservices.cpp: load cable NID from cables.xml
This commit is contained in:
@@ -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++;
|
||||||
|
Reference in New Issue
Block a user