RetainAaxFiles no longer used
This commit is contained in:
parent
797112740e
commit
7ff4953f7b
@ -44,7 +44,7 @@ namespace FileLiberator
|
|||||||
if (outputAudioFilename is null)
|
if (outputAudioFilename is null)
|
||||||
return new StatusHandler { "Decrypt failed" };
|
return new StatusHandler { "Decrypt failed" };
|
||||||
|
|
||||||
// moves files and returns dest dir. Do not put inside of if(RetainAaxFiles)
|
// moves files and returns dest dir
|
||||||
_ = moveFilesToBooksDir(libraryBook.Book, outputAudioFilename);
|
_ = moveFilesToBooksDir(libraryBook.Book, outputAudioFilename);
|
||||||
|
|
||||||
var finalAudioExists = AudibleFileStorage.Audio.Exists(libraryBook.Book.AudibleProductId);
|
var finalAudioExists = AudibleFileStorage.Audio.Exists(libraryBook.Book.AudibleProductId);
|
||||||
|
|||||||
@ -13,7 +13,7 @@
|
|||||||
<!-- <PublishSingleFile>true</PublishSingleFile> -->
|
<!-- <PublishSingleFile>true</PublishSingleFile> -->
|
||||||
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
|
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
|
||||||
|
|
||||||
<Version>5.0.0.1</Version>
|
<Version>5.0.0.2</Version>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@ -29,7 +29,6 @@ namespace LibationLauncher
|
|||||||
AudibleApiStorage.EnsureAccountsSettingsFileExists();
|
AudibleApiStorage.EnsureAccountsSettingsFileExists();
|
||||||
|
|
||||||
migrate_to_v4_0_0();
|
migrate_to_v4_0_0();
|
||||||
migrate_to_v4_0_3(); // add setting for whether to delete/retain aax
|
|
||||||
migrate_to_v5_0_0();
|
migrate_to_v5_0_0();
|
||||||
|
|
||||||
ensureLoggingConfig();
|
ensureLoggingConfig();
|
||||||
@ -209,27 +208,6 @@ namespace LibationLauncher
|
|||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region migrate_to_v4_0_3 add setting for whether to delete/retain aax
|
|
||||||
private static void migrate_to_v4_0_3()
|
|
||||||
{
|
|
||||||
if (!File.Exists(Configuration.Instance.SettingsFilePath))
|
|
||||||
return;
|
|
||||||
|
|
||||||
// use JObject to remove decrypt key and locale from Settings.json
|
|
||||||
var settingsContents = File.ReadAllText(Configuration.Instance.SettingsFilePath);
|
|
||||||
var jObj = JObject.Parse(settingsContents);
|
|
||||||
|
|
||||||
var jRetainAaxFiles = jObj.Property("RetainAaxFiles");
|
|
||||||
if (jRetainAaxFiles is null)
|
|
||||||
{
|
|
||||||
jObj.Add("RetainAaxFiles", false);
|
|
||||||
|
|
||||||
var newContents = jObj.ToString(Formatting.Indented);
|
|
||||||
File.WriteAllText(Configuration.Instance.SettingsFilePath, newContents);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region migrate_to_v5_0_0 re-gegister device if device info not in settings
|
#region migrate_to_v5_0_0 re-gegister device if device info not in settings
|
||||||
private static void migrate_to_v5_0_0()
|
private static void migrate_to_v5_0_0()
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user