- DX upgrade

- experimental support for Philips Repair\mgr_chan_s_fta.db file format (DVB-S only)
- fixed missing strings for LG empty-channel-list message box
This commit is contained in:
Horst Beham
2021-08-24 19:41:31 +02:00
parent d4c30a853d
commit b0b09de733
31 changed files with 636 additions and 360 deletions

View File

@@ -80,7 +80,7 @@ namespace ChanSort.Loader.Philips
public string DllName { get; set; }
public string PluginName => "Philips";
public string FileFilter => "*.bin;*.xml";
public string FileFilter => "*.bin;*.xml;*.db";
public SerializerBase CreateSerializer(string inputFile)
{
@@ -103,6 +103,14 @@ namespace ChanSort.Loader.Philips
break;
}
path = Path.Combine(dir, "channel_db_ver.db");
if (File.Exists(path))
{
inputFile = path;
majorVersion = -1;
break;
}
var dirName = Path.GetFileName(dir).ToLower();
if (dirName == "channellib" || dirName == "s2channellib")
dir = Path.GetDirectoryName(dir);
@@ -125,6 +133,8 @@ namespace ChanSort.Loader.Philips
return new XmlSerializer(inputFile);
if (majorVersion == 1 || majorVersion == 30 || majorVersion == 45) // || majorVersion == 11 // format version 11 is similar to 1.x, but not (yet) supported
return new BinarySerializer(inputFile);
if (majorVersion == -1)
return new DbSerializer(inputFile);
throw new FileLoadException($"Philips ChannelMap format version {majorVersion} is not supported.");
}