From 2a6d61530f9fff19e7c861396cfef1cc923d8f14 Mon Sep 17 00:00:00 2001 From: Alex Xu Date: Fri, 26 Jun 2026 10:23:09 -0700 Subject: [PATCH] epub input: fix fusion (#1375) --- kindlecomicconverter/comic2ebook.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kindlecomicconverter/comic2ebook.py b/kindlecomicconverter/comic2ebook.py index 6fafc44..2ecc57a 100755 --- a/kindlecomicconverter/comic2ebook.py +++ b/kindlecomicconverter/comic2ebook.py @@ -1751,7 +1751,9 @@ def makeFusion(sources: List[str]): else: targetpath = fusion_path.joinpath(f'{prefix}{source_path.name}') - getWorkFolder(source, str(targetpath)) + path = getWorkFolder(source, str(targetpath)) + if path != str(targetpath): + move(os.path.join(path, 'OEBPS', 'Images'), targetpath) sanitizeTree(targetpath, prefix='fusion') # TODO: remove flattenTree when subchapters are supported flattenTree(targetpath)