From d293ee14d32f13ccf525f25cf3572a29a30a36de Mon Sep 17 00:00:00 2001 From: Horst Beham Date: Thu, 2 Jan 2020 20:49:30 +0100 Subject: [PATCH] - fixed support for Philips channel lists with format 100 --- source/ChanSort.Loader.PhilipsXml/Serializer.cs | 4 +++- source/changelog.md | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/source/ChanSort.Loader.PhilipsXml/Serializer.cs b/source/ChanSort.Loader.PhilipsXml/Serializer.cs index 33ab3ce..942cd3a 100644 --- a/source/ChanSort.Loader.PhilipsXml/Serializer.cs +++ b/source/ChanSort.Loader.PhilipsXml/Serializer.cs @@ -145,6 +145,8 @@ namespace ChanSort.Loader.PhilipsXml private void LoadFile(string fileName) { + if (!File.Exists(fileName)) + return; bool fail = false; var fileData = new FileData(); try @@ -282,7 +284,7 @@ namespace ChanSort.Loader.PhilipsXml data.Add(attr.LocalName, attr.Value); } - if (!int.TryParse(data["UniqueID"], out var uniqueId)) // UniqueId only exists in ChannelMap_105 and later + if (!data.ContainsKey("UniqueID") || !int.TryParse(data["UniqueID"], out var uniqueId)) // UniqueId only exists in ChannelMap_105 and later uniqueId = rowId; var chan = new Channel(curList.SignalSource & SignalSource.MaskAdInput, rowId, uniqueId, setupNode); chan.OldProgramNr = -1; diff --git a/source/changelog.md b/source/changelog.md index 0c1a667..e6e2f63 100644 --- a/source/changelog.md +++ b/source/changelog.md @@ -4,6 +4,7 @@ ChanSort Change Log 2020-01-02 - added support for m3u lists (SAT>IP, VLC, WinAmp, ...) - added support for Hisense H50B7700UW (and maybe others which use the same favorite list table schema) +- fixed support for Philips lists with format 100 - fixed missing DLLs with spanish translation - fixed polarity display for Samsung (caused by a stale .ini file in the package) - disabled "Lock" toggle button when the list does not support parental locks