1
0
mirror of https://github.com/ciromattia/kcc synced 2026-06-28 17:15:27 +00:00

epub input: fix fusion (#1375)

This commit is contained in:
Alex Xu
2026-06-26 10:23:09 -07:00
committed by GitHub
parent 5396f1f9c4
commit 2a6d61530f
+3 -1
View File
@@ -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)