Files
ChanSort/source/ChanSort.Loader.Android/AndroidPlugin.cs
Horst Beham 9c2a7b9195 - Philips: fixes for ChannelMap_100, 105 and 110 formats
- Philips: support for FLASH/*.bin DVB-T/C and preset DVB-S lists (mgr_chan_s_pkg.db)
- Toshiba: lists with chmgt_type001\\chmgt.bin can now be opened without zipping them
- Toshiba: selecting the hotelopt_type001.bin will now also load the list (if the type is supported)
- Alden: added support for "Alden" Android SmartTV channel list format (dvr_rtk_tv.db)
2021-09-06 20:42:45 +02:00

24 lines
636 B
C#

using System.IO;
using ChanSort.Api;
namespace ChanSort.Loader.Android
{
public class AndroidPlugin : ISerializerPlugin
{
public string DllName { get; set; }
public string PluginName => "Android (*.db)";
public string FileFilter => "*.db";
public SerializerBase CreateSerializer(string inputFile)
{
var file = Path.GetFileName(inputFile).ToLowerInvariant();
// dvr_rtk_tv.db known from "Alden"
if (file.StartsWith("dvr_rtk_tv") && file.EndsWith(".db"))
return new AldenSerializer(inputFile);
throw new FileLoadException(SerializerBase.ERR_UnknownFormat);
}
}
}