From 98527ce03b84d8a589fbc3939f29e24714106f56 Mon Sep 17 00:00:00 2001 From: Alex Xu Date: Sun, 18 Oct 2026 18:28:19 -0700 Subject: [PATCH] fix minor logic error --- kindlecomicconverter/comic2ebook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kindlecomicconverter/comic2ebook.py b/kindlecomicconverter/comic2ebook.py index 1075ab95..2a4f886f 100755 --- a/kindlecomicconverter/comic2ebook.py +++ b/kindlecomicconverter/comic2ebook.py @@ -1099,7 +1099,7 @@ def getOutputFilename(srcpath, wantedname, ext, tomenumber): if not os.path.exists(abs_path): os.mkdir(abs_path) - if wantedname is None or custom_output_directory: + if not wantedname or custom_output_directory: if 'Ko' in options.profile and options.format == 'EPUB': if source_path.is_file(): name = KOBO_TOUCH_DRIVER_REGEX.sub('_', source_path.stem) + tomenumber + ext