First: don't put your library on OneDrive or Dropbox or a NAS or an SMB mount or anywhere else a network or syncing is involved. See
https://manual.calibre-ebook.com/faq...rked-drive-nas. I wish calibre could detect this situation because we get multiple "Help, my library has worked for (some long time) but is now corrupt!" posts per week caused by this issue.
My guess is that unless you have a recent backup of the full library (one of your mirrors might work but they easily could be equally corrupt), you are in for some work. That said, some people have had luck with this process:
- Make a full backup of the existing library! Actually copy the library folder to a local drive.
- Start calibre. It should open the old library.
- Create a new library in a folder on a local unsynced file system using "Choose Library / Create an empty library at the new location", with "Copy structure from the current library" checked. This will create and open an empty library.
- Switch back to the old library.
- Use "Copy to library, delete after copy" to move all books to the new library. This will leave behind all the books that have been "lost".
- Close the old library.
- Open the new library.
- Do "Add from folders and subfolders." Answer Yes to the question "Assume all e-book files in a single folder are multiple formats of the same book?" Choose the old library folder as the source.
- If you are lucky your library will be mostly correct. The metadata might need some help as changes since the damage will be lost, and you should check item notes (author, series, etc) if you use them.