fix minor logic error

This commit is contained in:
Alex Xu
2026-10-18 18:28:19 -07:00
parent 44ccaceb39
commit 98527ce03b
+1 -1
View File
@@ -1099,7 +1099,7 @@ def getOutputFilename(srcpath, wantedname, ext, tomenumber):
if not os.path.exists(abs_path): if not os.path.exists(abs_path):
os.mkdir(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 'Ko' in options.profile and options.format == 'EPUB':
if source_path.is_file(): if source_path.is_file():
name = KOBO_TOUCH_DRIVER_REGEX.sub('_', source_path.stem) + tomenumber + ext name = KOBO_TOUCH_DRIVER_REGEX.sub('_', source_path.stem) + tomenumber + ext