mirror of
https://github.com/PredatH0r/ChanSort.git
synced 2026-05-07 07:26:58 +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:
@@ -1,6 +1,5 @@
|
||||
using System;
|
||||
using System.Globalization;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using ChanSort.Api;
|
||||
|
||||
@@ -23,9 +22,9 @@ namespace ChanSort.Loader.SatcoDX
|
||||
this.RecordOrder = this.OldProgramNr = pos + 1;
|
||||
|
||||
if (!line.StartsWith("SATCODX"))
|
||||
throw new FileLoadException("Only SAT channels are supported");
|
||||
throw LoaderException.Fail("Only SAT channels are supported");
|
||||
if (line.Length < 106)
|
||||
throw new FileLoadException("Unrecognized channel format");
|
||||
throw LoaderException.Fail("Unrecognized channel format");
|
||||
|
||||
// 10-27: satellite name
|
||||
this.Satellite = line.Substring(10, 18);
|
||||
|
||||
Reference in New Issue
Block a user