mirror of
https://github.com/PredatH0r/ChanSort.git
synced 2026-01-15 03:42:04 +01:00
- 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)
21 lines
597 B
C#
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);
|
|
}
|
|
}
|
|
}
|