mirror of
https://github.com/ciromattia/kcc
synced 2026-09-01 16:37:06 +00:00
epub input: fix fusion (#1375)
This commit is contained in:
@@ -1751,7 +1751,9 @@ def makeFusion(sources: List[str]):
|
|||||||
else:
|
else:
|
||||||
targetpath = fusion_path.joinpath(f'{prefix}{source_path.name}')
|
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')
|
sanitizeTree(targetpath, prefix='fusion')
|
||||||
# TODO: remove flattenTree when subchapters are supported
|
# TODO: remove flattenTree when subchapters are supported
|
||||||
flattenTree(targetpath)
|
flattenTree(targetpath)
|
||||||
|
|||||||
Reference in New Issue
Block a user