Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 01-01-2021, 03:32 PM   #1
qwertyuio
Enthusiast
qwertyuio began at the beginning.
 
Posts: 28
Karma: 10
Join Date: Jan 2019
Device: none
Check Library does not allow adding extra titles

I have run a library check and it has found a few extra titles (files in the library that are not in the database). It appears the only option Calibre offers to correct the problem is to delete the files. I don't want to delete the files. I want to add them to the database. Is there any reason why the Check Library function does not allow me to add the extra files to the database?
qwertyuio is offline   Reply With Quote
Old 01-01-2021, 04:49 PM   #2
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,671
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by qwertyuio View Post
I have run a library check and it has found a few extra titles (files in the library that are not in the database). It appears the only option Calibre offers to correct the problem is to delete the files. I don't want to delete the files. I want to add them to the database. Is there any reason why the Check Library function does not allow me to add the extra files to the database?
Yes, there are too many corner cases to consider.

Errors of this sort are invariably caused when something other than calibre is used to add/rename/delete sub folders and files within the library folder - usually a file manager. The simple message is - Don't Do That.
  • Copy the list to the clipboard;
  • Move the 'Extra Title" book folders out of the library with your file manager;
  • Run the library check again to ensure the "Extra Title" books are gone;
  • Use one of calibre's Add Books options to put the books into the library;
I run the calibredb check_library weekly. On the odd occasion something is reported, I can recall what I did to 'break it' - usually leaving something behind like an unpacked CBZ after reordering the images.

BR
BetterRed is online now   Reply With Quote
Advert
Old 01-01-2021, 05:12 PM   #3
qwertyuio
Enthusiast
qwertyuio began at the beginning.
 
Posts: 28
Karma: 10
Join Date: Jan 2019
Device: none
I have not been adding books outside of Calibre. The reason for the extra titles is for some reason my metadata.db got corrupted. Calibre would start up and display the books fine but whenever I tried to add a book it, Calibre would freeze. Fortunately my Calibre startup script makes a backup copy of metadata.db so I was able to roll back to a version from a few hours earlier that works fine. But obviously it does not contain any changes made to the library since then.

It would be helpful if Calibre's Check Library offered to move the extra folders out of the library and into a temporary folder so I can then easily add them back. Expecting me to manually find the book folders in the library and move them out myself is unhelpful. Unfortunately due to the library design of a flat one directory per book structure, trying to pick folders out of a 100,000 book library with a file manager is a frustrating experience.
qwertyuio is offline   Reply With Quote
Old 01-01-2021, 10:21 PM   #4
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,671
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
If you post an Enhancement request in Bugs : calibre you will get a response from Kovid.

Or paste the list into a text editor, and edit it:- to move the books from the library folder into a scratch folder and add the books in the scratch folder into the library using the calibredb add utility.

BR
BetterRed is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Extra titles/authors in library Rellwood Library Management 2 10-04-2019 11:28 PM
How to fix "Extra Titles" in Database in " Check Library - Problems Found millan Library Management 33 07-16-2015 07:12 AM
'Check Library' -- Problems Found lists invalid titles and they are from Recycle enonod Library Management 4 12-01-2013 08:17 AM
Check Library, Extra Authors, Extra Titles copyrite Calibre 2 08-03-2012 01:35 PM
Extra Titles Error Persists in Check Library GeekyGal Library Management 2 12-10-2011 10:13 AM


All times are GMT -4. The time now is 11:36 PM.


MobileRead.com is a privately owned, operated and funded community.