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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user