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