mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 10:21:04 +02:00
zapit/src/getservices.cpp: load cable NID from cables.xml
Origin commit data
------------------
Branch: ni/coolstream
Commit: 066cdd0e27
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2012-07-31 (Tue, 31 Jul 2012)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
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