|
Before I write the plugin, I would like your view on one thing: where the repaired book goes. I see two ways.
A. The same book record. The repaired file becomes the book's EPUB, and the file as it was before is kept in the same record as ORIGINAL_EPUB, the way calibre's own Polish and Convert keep theirs. Both files stay in your library, side by side in the Book details panel, and calibre's own Restore command there brings the old one back. Metadata, custom columns, annotations and whatever a device plugin stores stay with the book, and sending it to your reader again replaces the copy there. If the book already has an ORIGINAL_EPUB from an earlier conversion or polish, the plugin leaves it alone and keeps its own copy of the pre-repair file with the book, with a menu entry to put it back.
B. A new book record. The repaired file is added as a separate book with the same metadata and cover, and the original record is not touched at all. The price is two entries for the same book, in the library and on the reader, and the reading position, annotations, collections and custom columns stay with the old one.
I lean towards A. In the epubsana thread, fogice asked how to put a repaired book back into calibre while keeping the reading position Kobo Utilities records, and the answer was to replace the format, not the book. But you are the ones who will live with it, so:
1. Would you use A or B? Should it be a setting?
2. If you see a repair on your reader and do not like it, how would you want to undo it?
3. Is there anything else you would expect from a plugin that changes books in your library?
|