mirror of
https://github.com/PredatH0r/ChanSort.git
synced 2026-01-31 03:29:04 +01:00
Philips: Improved support for ChannelMap_xxx channel lists directory structure.
Selecting any .xml or .bin file in the folder will now load all DVB\*.xml files from the channellib and s2channellib sub folders. The Loader can now return multiple file names to the MainForm that it will use for backup/restore.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.IO;
|
||||
using System.IO.Compression;
|
||||
@@ -27,6 +28,7 @@ namespace ChanSort.Api
|
||||
public bool CanHaveGaps { get; set; } = true;
|
||||
public bool EncryptedFlagEdit { get; set; }
|
||||
public DeleteMode DeleteMode { get; set; } = DeleteMode.NotSupported;
|
||||
public bool CanSaveAs { get; set; } = true;
|
||||
|
||||
|
||||
public Favorites SupportedFavorites { get; set; } = Favorites.A | Favorites.B | Favorites.C | Favorites.D;
|
||||
@@ -39,7 +41,7 @@ namespace ChanSort.Api
|
||||
|
||||
private Encoding defaultEncoding;
|
||||
|
||||
public string FileName { get; set; }
|
||||
public string FileName { get; protected set; }
|
||||
public DataRoot DataRoot { get; protected set; }
|
||||
public SupportedFeatures Features { get; } = new SupportedFeatures();
|
||||
|
||||
@@ -59,6 +61,16 @@ namespace ChanSort.Api
|
||||
set { this.defaultEncoding = value; }
|
||||
}
|
||||
|
||||
#region GetDataFilePaths
|
||||
/// <summary>
|
||||
/// returns the list of all data files that need to be copied for backup/restore
|
||||
/// </summary>
|
||||
public virtual IEnumerable<string> GetDataFilePaths()
|
||||
{
|
||||
return new List<string> { this.FileName };
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region GetFileInformation()
|
||||
public virtual string GetFileInformation()
|
||||
{
|
||||
@@ -192,6 +204,5 @@ namespace ChanSort.Api
|
||||
return 0;
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user