mirror of
https://github.com/PredatH0r/ChanSort.git
synced 2026-05-07 10:06:17 +02:00
- 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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user