It would be great if the name of the channel was separated into two names, Name, TuningName or something like that. And you would then not be allowed to change the tuningname.
Updating based purely on tuningdetails would perhaps be more problematic then i thought about first because of all the different types of cards.
All dvb cards and the atsc card is using these parameters as the uniqueid though:
But is the name really required here ? Doesn't seem to be the case for DVB-S, at least not for my channels. That is, the provider, networkid, transportid, serviced seems to form a uniqueid. If that's the case then removing the name in the constraint would fix the problem when the names are changed after the scan.
The analog channels are mapped only by name though afaics so you would need to change that i guess. Wouldn't frequency be enough there ?
Updating based purely on tuningdetails would perhaps be more problematic then i thought about first because of all the different types of cards.
All dvb cards and the atsc card is using these parameters as the uniqueid though:
Code:
sb.AddConstraint(Operator.Equals, "name", channel.Name);
sb.AddConstraint(Operator.Equals, "provider", channel.Provider);
sb.AddConstraint(Operator.Equals, "networkId", channel.MajorChannel);
sb.AddConstraint(Operator.Equals, "transportId", channel.MinorChannel);
sb.AddConstraint(Operator.Equals, "serviceId", channel.ServiceId);
But is the name really required here ? Doesn't seem to be the case for DVB-S, at least not for my channels. That is, the provider, networkid, transportid, serviced seems to form a uniqueid. If that's the case then removing the name in the constraint would fix the problem when the names are changed after the scan.
The analog channels are mapped only by name though afaics so you would need to change that i guess. Wouldn't frequency be enough there ?
Sweden