mirror of
https://github.com/PredatH0r/ChanSort.git
synced 2026-01-19 13:52:04 +01:00
- 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)
This commit is contained in:
23
source/ChanSort.Loader.Android/AndroidPlugin.cs
Normal file
23
source/ChanSort.Loader.Android/AndroidPlugin.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user