From b4c71b3b91fae535c939db93f1b0cc3ea31f50b8 Mon Sep 17 00:00:00 2001 From: Alex Xu Date: Wed, 29 Jul 2026 17:06:52 -0700 Subject: [PATCH] pass options to slugify (#1411) --- kindlecomicconverter/comic2ebook.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kindlecomicconverter/comic2ebook.py b/kindlecomicconverter/comic2ebook.py index 5a147f3f..8f30f707 100755 --- a/kindlecomicconverter/comic2ebook.py +++ b/kindlecomicconverter/comic2ebook.py @@ -1254,7 +1254,7 @@ def sanitizeTree(filetree, prefix='kcc'): dirs.sort(key=OS_SORT_KEY) for i, name in enumerate(dirs): tmpName = name - slugified = slugify(name, is_natural_sorted) + slugified = slugify(name, options, is_natural_sorted) while os.path.exists(os.path.join(root, slugified)) and name.upper() != slugified.upper(): slugified += "A" chapterNames[slugified] = tmpName @@ -1417,7 +1417,7 @@ def createNewTome(parent): return tomePath, tomePathRoot -def slugify(value, is_natural_sorted): +def slugify(value, options, is_natural_sorted): if options.format == 'CBZ' and is_natural_sorted: return value if options.format != 'CBZ':