mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-01 09:51:22 +02:00
api4: fix name compare to realname compare
This commit is contained in:
@@ -221,6 +221,7 @@ class CZapitChannel
|
|||||||
|
|
||||||
/* get methods - read and write variables */
|
/* get methods - read and write variables */
|
||||||
const std::string& getName(void) const { return (!uname.empty() ? uname : name); }
|
const std::string& getName(void) const { return (!uname.empty() ? uname : name); }
|
||||||
|
const std::string& getRealname(void) const { return name; }
|
||||||
const std::string& getUrl(void) const { return url; }
|
const std::string& getUrl(void) const { return url; }
|
||||||
const std::string& getDesc(void) const { return desc; }
|
const std::string& getDesc(void) const { return desc; }
|
||||||
t_satellite_position getSatellitePosition(void) const { return satellitePosition; }
|
t_satellite_position getSatellitePosition(void) const { return satellitePosition; }
|
||||||
|
@@ -1242,7 +1242,7 @@ bool CServiceManager::SaveCurrentServices(transponder_id_t tpid)
|
|||||||
if(ccI == allchans.end()) {
|
if(ccI == allchans.end()) {
|
||||||
WriteCurrentService(fd, satfound, tpdone, updated, satstr, tI->second, cI->second, "add");
|
WriteCurrentService(fd, satfound, tpdone, updated, satstr, tI->second, cI->second, "add");
|
||||||
} else {
|
} else {
|
||||||
if(strcmp(cI->second.getName().c_str(), ccI->second.getName().c_str()) || cI->second.scrambled != ccI->second.scrambled) {
|
if(strcmp(cI->second.getRealname().c_str(), ccI->second.getRealname().c_str()) || cI->second.scrambled != ccI->second.scrambled) {
|
||||||
cI->second.number = ccI->second.number;
|
cI->second.number = ccI->second.number;
|
||||||
WriteCurrentService(fd, satfound, tpdone, updated, satstr, tI->second, cI->second, "replace");
|
WriteCurrentService(fd, satfound, tpdone, updated, satstr, tI->second, cI->second, "replace");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user