From f3a746a85216ef8f344769402e6b9567c58e0f4f Mon Sep 17 00:00:00 2001 From: Robert McRackan Date: Tue, 29 Jun 2021 12:02:04 -0400 Subject: [PATCH] Make path safe. Colon was breaking file path --- FileLiberator/AaxcDownloadDecrypt/DownloadDecryptBook.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FileLiberator/AaxcDownloadDecrypt/DownloadDecryptBook.cs b/FileLiberator/AaxcDownloadDecrypt/DownloadDecryptBook.cs index 4ae53569..16e097b7 100644 --- a/FileLiberator/AaxcDownloadDecrypt/DownloadDecryptBook.cs +++ b/FileLiberator/AaxcDownloadDecrypt/DownloadDecryptBook.cs @@ -100,7 +100,7 @@ namespace FileLiberator.AaxcDownloadDecrypt CoverImageFilepathDiscovered?.Invoke(this, aaxcDownloader.CoverArt); // override default which was set in CreateAsync - var proposedOutputFile = Path.Combine(destinationDir, $"{libraryBook.Book.Title} [{libraryBook.Book.AudibleProductId}].m4b"); + var proposedOutputFile = Path.Combine(destinationDir, $"{PathLib.ToPathSafeString(libraryBook.Book.Title)} [{libraryBook.Book.AudibleProductId}].m4b"); aaxcDownloader.SetOutputFilename(proposedOutputFile); aaxcDownloader.DecryptProgressUpdate += (s, progress) => UpdateProgress?.Invoke(this, progress); aaxcDownloader.DecryptTimeRemaining += (s, remaining) => UpdateRemainingTime?.Invoke(this, remaining);