From dae9c9c9b69b18dfa5977353be7f89e30b0b16f4 Mon Sep 17 00:00:00 2001 From: Michael Bucari-Tovo Date: Wed, 15 Sep 2021 15:16:08 -0600 Subject: [PATCH 1/3] Add read permission to file stream. --- AaxDecrypter/AaxcDownloadConverter.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/AaxDecrypter/AaxcDownloadConverter.cs b/AaxDecrypter/AaxcDownloadConverter.cs index 8810db0e..9cb96273 100644 --- a/AaxDecrypter/AaxcDownloadConverter.cs +++ b/AaxDecrypter/AaxcDownloadConverter.cs @@ -83,7 +83,8 @@ namespace AaxDecrypter } var speedup = (int)(aaxFile.Duration.TotalSeconds / (long)Elapsed.TotalSeconds); - Serilog.Log.Logger.Information($"Speedup is {speedup}x realtime."); + Console.WriteLine("Speedup is " + speedup + "x realtime."); + Console.WriteLine("Done"); return true; } @@ -144,7 +145,7 @@ namespace AaxDecrypter if (File.Exists(outputFileName)) FileExt.SafeDelete(outputFileName); - FileStream outFile = File.OpenWrite(outputFileName); + FileStream outFile = File.Open(outputFileName, FileMode.OpenOrCreate, FileAccess.ReadWrite); aaxFile.SetDecryptionKey(downloadLicense.AudibleKey, downloadLicense.AudibleIV); From 988b137d673862ed2328e13708f26e38b92e53a3 Mon Sep 17 00:00:00 2001 From: Michael Bucari-Tovo Date: Wed, 15 Sep 2021 15:26:40 -0600 Subject: [PATCH 2/3] Updated AAXClean version. --- AaxDecrypter/AaxDecrypter.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AaxDecrypter/AaxDecrypter.csproj b/AaxDecrypter/AaxDecrypter.csproj index da628c8d..6dc7ad81 100644 --- a/AaxDecrypter/AaxDecrypter.csproj +++ b/AaxDecrypter/AaxDecrypter.csproj @@ -5,7 +5,7 @@ - + From b4a63425135d45629db93083aa032a15e875546d Mon Sep 17 00:00:00 2001 From: Michael Bucari-Tovo Date: Wed, 15 Sep 2021 15:32:34 -0600 Subject: [PATCH 3/3] Revert accidental change. --- AaxDecrypter/AaxcDownloadConverter.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/AaxDecrypter/AaxcDownloadConverter.cs b/AaxDecrypter/AaxcDownloadConverter.cs index 9cb96273..60f14003 100644 --- a/AaxDecrypter/AaxcDownloadConverter.cs +++ b/AaxDecrypter/AaxcDownloadConverter.cs @@ -83,8 +83,7 @@ namespace AaxDecrypter } var speedup = (int)(aaxFile.Duration.TotalSeconds / (long)Elapsed.TotalSeconds); - Console.WriteLine("Speedup is " + speedup + "x realtime."); - Console.WriteLine("Done"); + Serilog.Log.Logger.Information($"Speedup is {speedup}x realtime."); return true; }