@cybmole - this plugin will *never* overwrite an existing "ORIGINAL_EPUB".
The logic in this plugin is very simple when that "save_original_format_when_polishing" is set to true:
- If you have an EPUB but no ORIGINAL_EPUB, then it will effectively copy the current EPUB to "ORIGINAL_EPUB", *before* doing any Modify operations on the EPUB.
- If have an ORIGINAL_EPUB but no EPUB, then it will do nothing.
- If you have an EPUB and already an ORIGINAL_EPUB, then it just works on the EPUB.
So operations are always and only ever on the EPUB format. If you do multiple Modify operations, they will progressively get applied to that EPUB version. The plugin never takes the ORIGINAL_EPUB as a starting point for operations. If you want to do that you have to use the conventional "Restore" feature that calibre has to overwrite your EPUB from the ORIGINAL, and then do your Modify actions again which will apply to your EPUB format.
|