rename BookTags.json to UserDefinedItems.json
This commit is contained in:
parent
b6c9a82c68
commit
cd418e877d
@ -16,7 +16,7 @@ namespace FileManager
|
||||
/// </summary>
|
||||
public static class TagsPersistence
|
||||
{
|
||||
private static string TagsFile => Path.Combine(Configuration.Instance.LibationFiles, "BookTags.json");
|
||||
private static string TagsFile => Path.Combine(Configuration.Instance.LibationFiles, "UserDefinedItems.json");
|
||||
|
||||
private static object locker { get; } = new object();
|
||||
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
<!-- <PublishSingleFile>true</PublishSingleFile> -->
|
||||
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
|
||||
|
||||
<Version>5.3.9.6</Version>
|
||||
<Version>5.3.10.1</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@ -51,6 +51,7 @@ namespace LibationLauncher
|
||||
|
||||
migrate_to_v5_0_0(config);
|
||||
migrate_to_v5_2_0__post_config(config);
|
||||
migrate_to_v5_3_10(config);
|
||||
|
||||
ensureSerilogConfig(config);
|
||||
configureLogging(config);
|
||||
@ -141,7 +142,7 @@ namespace LibationLauncher
|
||||
CancelInstallation();
|
||||
}
|
||||
|
||||
#region migrate_to_v5_0_0 re-register device if device info not in settings
|
||||
#region migrate to v5.0.0: re-register device if device info not in settings
|
||||
private static void migrate_to_v5_0_0(Configuration config)
|
||||
{
|
||||
if (!config.Exists(nameof(config.AllowLibationFixup)))
|
||||
@ -229,6 +230,19 @@ namespace LibationLauncher
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region migrate to v5.3.10: rename BookTags.json to UserDefinedItems.json
|
||||
private static void migrate_to_v5_3_10(Configuration config)
|
||||
{
|
||||
var oldPath = Path.Combine(config.LibationFiles, "BookTags.json");
|
||||
|
||||
if (File.Exists(oldPath))
|
||||
{
|
||||
var newPath = Path.Combine(config.LibationFiles, "UserDefinedItems.json");
|
||||
File.Move(oldPath, newPath);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
private static void ensureSerilogConfig(Configuration config)
|
||||
{
|
||||
if (config.GetObject("Serilog") != null)
|
||||
|
||||
@ -66,7 +66,7 @@ alternate book id (eg BK_RAND_006061) is called 'sku' , 'sku_lite' , 'prod_id' ,
|
||||
do NOT combine jsons for
|
||||
- audible-scraped persistence: library, book details
|
||||
- libation-generated persistence: FilePaths.json
|
||||
- user-defined persistence: BookTags.json
|
||||
- user-defined persistence: UserDefinedItems.json
|
||||
-- end SOLUTION LAYOUT ---------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
-- begin EF CORE ---------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user