mirror of
https://github.com/PredatH0r/ChanSort.git
synced 2026-08-13 03:18:49 +02:00
- fixed support for Philips channel lists with format 100
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user