mirror of
https://github.com/PredatH0r/ChanSort.git
synced 2026-05-07 09:26:05 +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:
@@ -99,12 +99,12 @@ namespace ChanSort.Loader.Enigma2
|
||||
{
|
||||
var path = Path.Combine(Path.GetDirectoryName(this.FileName), "lamedb");
|
||||
if (!File.Exists(path))
|
||||
throw new FileLoadException($"Could not find required file \"{path}\"");
|
||||
throw LoaderException.Fail($"Could not find required file \"{path}\"");
|
||||
|
||||
using var r = new StreamReader(File.OpenRead(path), utf8WithoutBom);
|
||||
var line = r.ReadLine();
|
||||
if (line != "eDVB services /4/")
|
||||
throw new FileLoadException($"lamedb version 4 is required");
|
||||
throw LoaderException.Fail($"lamedb version 4 is required");
|
||||
|
||||
string mode = null;
|
||||
Transponder tp = null;
|
||||
|
||||
Reference in New Issue
Block a user