- fixed some DVB-C channel names (based on frequency)

- clarified message for Philips 120 / 125 file format that the TV must be unplugged instead of pressing OK
- fixed loading of some Philips 120 / 125 lists that complained about missing channels in MtkChannelList.xml
This commit is contained in:
Horst Beham
2025-06-06 01:41:39 +02:00
parent 636b9c4151
commit a50574fe36
17 changed files with 380 additions and 62 deletions

View File

@@ -324,7 +324,7 @@ public class Serializer : SerializerBase
// sort the channels in the recombined lists
foreach (var list in recombinedLists.Values)
{
XmlNode serviceListInfoNode = null;
XmlElement serviceListInfoNode = null;
foreach (var chan in list.OrderBy(c => c.NewProgramNr).ThenBy(c => c.OldProgramNr).ThenBy(c => c.RecordIndex))
{
if (chan is not Channel ch || ch.IsProxy)
@@ -335,9 +335,11 @@ public class Serializer : SerializerBase
// reorder nodes physically: first remove all, then add them 1-by-1
if (serviceListInfoNode == null)
{
serviceListInfoNode = si.ParentNode;
serviceListInfoNode = (XmlElement)si.ParentNode;
while (serviceListInfoNode!.HasChildNodes)
serviceListInfoNode.RemoveChild(serviceListInfoNode.FirstChild);
serviceListInfoNode.SetAttribute("lcn_type", "LCNS_ENABLED");
}
serviceListInfoNode.AppendChild(si);