mirror of
https://github.com/PredatH0r/ChanSort.git
synced 2026-05-07 12:27:49 +02:00
- added function to mark a channel for swapping + swap with current channel
- replaced misuse of "FileLoadException" with a custom LoaderException to handle file loading issues with better continue/fail logic - removed "Save As" and replaced it with "Convert list" menu item that shows information on how to use a reference list instead of direct conversion
This commit is contained in:
@@ -12,7 +12,7 @@ namespace ChanSort.Loader.Samsung.Zip
|
||||
/// <summary>
|
||||
/// Loader for Samsung J/K/M/N/R/Q series .zip files (2015 - 2020)
|
||||
/// </summary>
|
||||
class DbSerializer : SerializerBase
|
||||
internal class DbSerializer : SerializerBase
|
||||
{
|
||||
private readonly Dictionary<long, DbChannel> channelById = new Dictionary<long, DbChannel>();
|
||||
private readonly Dictionary<ChannelList, string> dbPathByChannelList = new Dictionary<ChannelList, string>();
|
||||
@@ -44,7 +44,7 @@ namespace ChanSort.Loader.Samsung.Zip
|
||||
this.UnzipFileToTempFolder();
|
||||
if (File.Exists(this.TempPath + "\\sat"))
|
||||
{
|
||||
try
|
||||
// try
|
||||
{
|
||||
using (var conn = new SqliteConnection("Data Source=" + this.TempPath + "\\sat"))
|
||||
{
|
||||
@@ -52,14 +52,14 @@ namespace ChanSort.Loader.Samsung.Zip
|
||||
this.ReadSatDatabase(conn);
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
// catch
|
||||
//{
|
||||
//}
|
||||
}
|
||||
|
||||
var files = Directory.GetFiles(this.TempPath, "*.");
|
||||
if (files.Length == 0)
|
||||
throw new FileLoadException("The Samsung .zip channel list archive does not contain any supported files.");
|
||||
throw LoaderException.TryNext("The Samsung .zip channel list archive does not contain any supported files.");
|
||||
|
||||
foreach (var filePath in files)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user