From a922cfdf40cba273542ddcd23bfc4a56c8ad20ba Mon Sep 17 00:00:00 2001 From: Mbucari <37587114+Mbucari@users.noreply.github.com> Date: Sat, 5 Sep 2026 16:37:57 -0600 Subject: [PATCH] Add option to overwrite existing files in DownloadPdf --- Source/FileLiberator/DownloadPdf.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/FileLiberator/DownloadPdf.cs b/Source/FileLiberator/DownloadPdf.cs index ccb03a6b..f5a2a637 100644 --- a/Source/FileLiberator/DownloadPdf.cs +++ b/Source/FileLiberator/DownloadPdf.cs @@ -218,7 +218,7 @@ public class DownloadPdf : Processable, IProcessable, ILicensedDown = Path.GetDirectoryName(AudibleFileStorage.Audio.GetPath(libraryBook.Book.AudibleProductId)) ?? AudibleFileStorage.Audio.GetDestinationDirectory(libraryBook, Configuration); - return AudibleFileStorage.Audio.GetCustomDirFilename(libraryBook, destinationDir, extension); + return AudibleFileStorage.Audio.GetCustomDirFilename(libraryBook, destinationDir, extension, returnFirstExisting: Configuration.OverwriteExisting); } private static string? getdownloadUrl(LibraryBook libraryBook)