View Single Post
Old 02-16-2014, 05:59 AM   #566
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,732
Karma: 2197770
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
@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.
kiwidude is offline   Reply With Quote