I've been trying to investigate the issue where using the "Update ToC" feature sometimes causes a "unique constraint failed" error, but so far I have not been able to reproduce it. @ownedbycats gave me some pointers about the EpubMerge and FanFicFare plugins, but even when experimenting with them a bit I've been unsuccessful, so clearly I'm missing something.
I'm assuming that the basic reproduction steps required are these:
- Send version 1 of a book to a device so it gets imported
- Send version 2 of the book to the device
- Open the "Update ToC" dialog and click on "Update ToC" button
It would be really helpful if someone could provide the relevant two versions of a book and confirm that the above steps reproduce the issue with the provided book. Thanks!