View Single Post
Old 04-21-2023, 10:40 AM   #8361
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 7,029
Karma: 4604637
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Calibre Trash Can

I don't think FFF needs to do anything special about this. We'll have to watch for issues.

Tech Details:
Spoiler:
FFF uses the Calibre APIs to remove formats (db.remove_format()) and books (actions['Remove Books'].do_library_delete()).

FFF does db.remove_format() before adding the updated epub (or other downloaded format) and 'Remove New Chapter marks' specifically so the prior version ends up in system trash.

If a user updates a book with FFF and then restores the removed format from Trash, it will not restore the prior metadata in the library. It would be equivalent to doing 'Update Calibre Metadata Only'.

I'm a bit surprised--as I recall, Kovid had previously not wanted a trash can in Calibre. And I don't find any discussion of it here in MR, in the bug tracker or in github. I wonder what changed his mind?
JimmXinu is online now   Reply With Quote