- fixed support for Philips channel lists with format 100

This commit is contained in:
Horst Beham
2020-01-02 20:49:30 +01:00
parent f04cb5e903
commit d293ee14d3
2 changed files with 4 additions and 1 deletions

View File

@@ -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;