![]() |
#1 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Jun 2013
Device: kindle fire
|
Library count not matching the number of books
I have 358 books in the library. The number next to the "isbn" identifier is 359. When I click on it, on the bottom of the screen shows '358 books'. All other book numbers and totals add up.
How do I find "ghost" book? Calibre: 1.1.14.0 |
![]() |
![]() |
![]() |
#2 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 250
Karma: 20386
Join Date: Sep 2010
Location: France
Device: Bookeen Diva, Kobo Clara BW
|
The ID of a book (which is probably what you have next to the ISBN) does not follow the number of books in the library. It is a simple incremental number, unique to that book.
Therefore, if you add, say, 12 books to an empty library, the next book you add will be #13. Now delete book #5. Book #13 is still #13, but there's now only 12 books in the library, and no "ghost book". Or maybe I didn't understand your question. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Jun 2013
Device: kindle fire
|
I attached screenshot that should make it clear.
|
![]() |
![]() |
![]() |
#4 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 250
Karma: 20386
Join Date: Sep 2010
Location: France
Device: Bookeen Diva, Kobo Clara BW
|
Ah! Yeah, the problem is clearer.
Now seeing this... I thought at first that there was maybe a book with two ISBNs, but I've tried that and the second is automatically removed (Well actually the second in the identifiers list had priority and the first is removed). Strange... EDIT: Try to install the Quality Check addon; the "Check metadata/CheckISBN" option can maybe track the error. Last edited by aleyx; 12-13-2013 at 01:09 PM. |
![]() |
![]() |
![]() |
#5 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,047
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
You may have a database error.
Perform Library Maintenance check |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Jun 2013
Device: kindle fire
|
Thank you for your help guys.
I installed Quality Check and found no errors. Books > Check Library also show "no errors" |
![]() |
![]() |
![]() |
#7 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 250
Karma: 20386
Join Date: Sep 2010
Location: France
Device: Bookeen Diva, Kobo Clara BW
|
What about a search like "identifiers:isbn and not identifiers:amazon" ?
EDIT: Also, try to add a custom column, and click "isbn" on the new column form. When you've got Calibre restarted, sort by ISBN, enlarge the column, and see if there's one of 'em that doesn't look right. Last edited by aleyx; 12-13-2013 at 02:01 PM. |
![]() |
![]() |
![]() |
#8 | ||
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Jun 2013
Device: kindle fire
|
Quote:
Quote:
|
||
![]() |
![]() |
![]() |
#9 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 250
Karma: 20386
Join Date: Sep 2010
Location: France
Device: Bookeen Diva, Kobo Clara BW
|
Hm.
I've got a couple more things to try, but it involves installing an SQLite database explorer; mine is actually an addon for Firefox. Are you okay with that? I don't want to tell you what to install on your own computer... |
![]() |
![]() |
![]() |
#10 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,047
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Not all books will always have all 3 identifiers
Are you sure you don't have a Virtual Library (or saved search) in place? Try this search (NOT tested. might not work) Code:
identifiers:isbn:#>1 |
![]() |
![]() |
![]() |
#11 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 250
Karma: 20386
Join Date: Sep 2010
Location: France
Device: Bookeen Diva, Kobo Clara BW
|
His (her?) screenshot tends to show that there are only 358 book in the collection/library/virtual library. Since the tag browser lists 359 ISBNs, either a book has two ISBNs, or the identifiers table has an orphan record (a record whose 'book' field has an ID not in the `books`table).
If the former, your search query (I didn't know that one, thanks) should show which book. If the latter, a query like 'SELECT * FROM identifiers WHERE book NOT IN (SELECT id FROM books)' should list the record in error. edit: identifiers:isbn:#>0 returns no book, so I don't know if identifiers:isbn:#>1 would work after all... Oh, and my query is, of course, an SQL query and should be run from an sqlite explorer program. Running it in Calibre would have no useful effect. Last edited by aleyx; 12-13-2013 at 04:14 PM. |
![]() |
![]() |
![]() |
#12 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Jun 2013
Device: kindle fire
|
Thank you very much for all the help. I followed instructions and found orphaned entry in identifiers table. I deleted it and it is all good now.
|
![]() |
![]() |
![]() |
#13 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 250
Karma: 20386
Join Date: Sep 2010
Location: France
Device: Bookeen Diva, Kobo Clara BW
|
Glad we could be of help.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Show Total Number of Books in Calibre Library | Canadian reader | Library Management | 8 | 08-29-2013 11:29 PM |
UI ? - Total count of books in library gone? | VirgoGirl | Calibre | 12 | 06-14-2013 01:52 PM |
custom column: count number of characters (in book path) | miquele | Library Management | 25 | 09-21-2012 01:54 PM |
Count number of authors | Zifnab | Library Management | 5 | 09-03-2011 11:31 AM |
Number of Books in Calibre Library | mitch13 | Library Management | 1 | 02-15-2011 01:52 AM |