Quote:
Originally Posted by capink
It will not delete directories. And it only deletes files that end with .ttf extension.
Also, a word of advice: Never ever delete the originals. You have been warned.
|
I double checked and confirmed it deletes folders
And I've encountered another problem.
If some image files are missing, the entire action is aborted and gives error message :
Code:
Editor Chains: Starting chain: Misc Actions
Editor Chains: Misc Actions: starting action No. 1: Compress Images
Editor Chains: action "Compress Images" terminated with exception: 'OEBPS/images/img11.jpg'
Traceback (most recent call last):
File "calibre_plugins.editor_chains.chains", line 177, in _run_loop
File "calibre_plugins.editor_chains.actions.compress_images", line 89, in run
File "calibre\ebooks\oeb\polish\images.py", line 87, in compress_images
KeyError: 'OEBPS/images/img11.jpg'
Traceback (most recent call last):
File "calibre_plugins.editor_chains.cmdline", line 77, in cmdline_run
File "calibre_plugins.editor_chains.cmdline", line 53, in run_chain
File "calibre_plugins.editor_chains.action_chains", line 40, in run_editor_chain
File "calibre_plugins.editor_chains.chains", line 320, in run
File "calibre_plugins.editor_chains.chains", line 200, in _run_loop
File "calibre_plugins.editor_chains.chains", line 177, in _run_loop
File "calibre_plugins.editor_chains.actions.compress_images", line 89, in run
File "calibre\ebooks\oeb\polish\images.py", line 87, in compress_images
KeyError: 'OEBPS/images/img11.jpg'
it means, only flawless epub can be properly processed..?