mirror of
https://github.com/PredatH0r/ChanSort.git
synced 2026-03-06 20:20:43 +01:00
- 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:
@@ -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.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user