mirror of
https://github.com/PredatH0r/ChanSort.git
synced 2026-08-26 22:05:34 +02:00
- added experimental support for Loewe / Hisense 2017 servicelist.db
file format - show error message when trying to open a .zip file that doen't contain the expected files of a Samsung J series or Toshiba .zip channel list - show error message when trying to open a broken .zip file, which is most likely caused by exporting to a USB stick formatted with NTFS - allow changing the "crypt" flag for Samsung .scm lists - iterating through loaders supporting a file extension till one can read the file
This commit is contained in:
@@ -9,8 +9,9 @@
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>ChanSort.Loader.SamsungJ</RootNamespace>
|
||||
<AssemblyName>ChanSort.Loader.SamsungJ</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
|
||||
@@ -55,7 +55,11 @@ namespace ChanSort.Loader.SamsungJ
|
||||
catch { }
|
||||
}
|
||||
|
||||
foreach (var filePath in Directory.GetFiles(tempDir, "*."))
|
||||
var files = Directory.GetFiles(tempDir, "*.");
|
||||
if (files.Length == 0)
|
||||
throw new FileLoadException("The Samsung .zip channel list archive does not contain any supported files.");
|
||||
|
||||
foreach (var filePath in files)
|
||||
{
|
||||
var filename = Path.GetFileName(filePath) ?? "";
|
||||
if (filename.StartsWith("vconf_"))
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace ChanSort.Loader.SamsungJ
|
||||
{
|
||||
public class DbSerializerPlugin : ISerializerPlugin
|
||||
{
|
||||
public string PluginName => "Samsung J-Series (*.zip)";
|
||||
public string PluginName => "Samsung J-K series";
|
||||
public string FileFilter => "*.zip"; // "channel_list_t*.zip";
|
||||
|
||||
public SerializerBase CreateSerializer(string inputFile)
|
||||
|
||||
Reference in New Issue
Block a user