From dae9c9c9b69b18dfa5977353be7f89e30b0b16f4 Mon Sep 17 00:00:00 2001 From: Michael Bucari-Tovo Date: Wed, 15 Sep 2021 15:16:08 -0600 Subject: [PATCH] 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);