Files
ChanSort/source/ChanSort.Loader.Enigma2/Enigma2Plugin.cs
Horst Beham 68d3fc4963 - Panasonic LS 500 / LX 700 series: support for new firmware which doesn't export a hotel.bin file.
- Loewe servicelist.xml (and maybe some other .xml files) larger than 2 000 000 bytes were
  not loaded.
- Enigma/Linux lists can now also be opened by selecting a .tv or .radio file (not just lamedb)
2023-06-01 11:11:33 +02:00

21 lines
597 B
C#

using System.IO;
using ChanSort.Api;
namespace ChanSort.Loader.Enigma2
{
public class Enigma2Plugin : ISerializerPlugin
{
public string DllName { get; set; }
public string PluginName => "Enigma2 (Linux Receiver)";
public string FileFilter => "lamedb;*.tv;*.radio";
public SerializerBase CreateSerializer(string inputFile)
{
var ext = Path.GetExtension(inputFile).ToLowerInvariant();
if (ext == ".tv" || ext == ".radio")
inputFile = Path.Combine(Path.GetDirectoryName(inputFile) ?? "", "lamedb");
return new Serializer(inputFile);
}
}
}