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 10-18-2022, 10:18 PM   #1
JohnnyBook
Groupie
JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.
 
Posts: 191
Karma: 126824
Join Date: Dec 2008
Location: Out There
Device: K3 W/3G (Fixed screen!) & Paperwhite Wifi
Question Is renumbering the Calibre #bookid possible?

I have had my library of e-books in Calibre for almost 15 years. In that time I have have deleted many duplicate books entries, or merged entries in different formats, or deleted books I no longer keep in my library.

As a result, my library has (for example) 10,000 book entries, but is currently at #bookid number 15,000.

It really stood out to me recently when I added 8 books, that I did not realize were already in my Library. So I deleted them immediately, but when I added the next new book, the #bookid skipped the deleted book entries and incremented the #bookid past them.

i.e.
I added 8 books, entered library as #bookid 15,001-15,008.
Realized they were dups, and deleted them from Library,
Added a new book, its assigned #bookid 15,009, instead of 15,001.

The OCD in me would like to renumber all the entries in my library to remove the thousands of #bookid gaps.

Is this possible? Or do I just need to close my eyes when I look at that column.
JohnnyBook is offline   Reply With Quote
Old 10-18-2022, 10:21 PM   #2
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
Posts: 1,611
Karma: 9500498
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
Try this... https://www.mobileread.com/forums/sh...d.php?t=348642
Karellen is offline   Reply With Quote
Advert
Old 10-18-2022, 10:41 PM   #3
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,706
Karma: 74203799
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by JohnnyBook View Post
Is this possible? Or do I just need to close my eyes when I look at that column.
This is the best option. But if you really want, you can create a new library and copy all the books to it. This'll remove gaps, though won't prevent new ones from forming.

Several users on here have a separate 'intake library' where they clean and check everything before copying it to their proper one.
ownedbycats is offline   Reply With Quote
Old 10-18-2022, 10:58 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,637
Karma: 29710510
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by JohnnyBook View Post
Or do I just need to close my eyes when I look at that column.
Better yet don't look at that column.

The only time a user needs to know about the book id is if they want to use some of the command line utilities, e.g. calibredb set_metadata

Even if you jump through the hoops to get them contiguous today, when you do any book removals or merges they will be discontiguous… again.

BR

Last edited by BetterRed; 10-18-2022 at 11:03 PM.
BetterRed is online now   Reply With Quote
Old 10-19-2022, 12:36 AM   #5
JohnnyBook
Groupie
JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.
 
Posts: 191
Karma: 126824
Join Date: Dec 2008
Location: Out There
Device: K3 W/3G (Fixed screen!) & Paperwhite Wifi
95% of the time I sort my books by most recent added to library. So sorting by #bookid is what I use.
JohnnyBook is offline   Reply With Quote
Advert
Old 10-19-2022, 01:36 AM   #6
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,637
Karma: 29710510
Join Date: Mar 2012
Location: Sydney Australia
Device: none
+
Quote:
Originally Posted by JohnnyBook View Post
95% of the time I sort my books by most recent added to library. So sorting by #bookid is what I use.
Providing you don't change the Date column, then if you sort the book list by Date you'll get much the same result as sorting it by book-id.

As well as gaps caused by book removals and merges, changes to book title and/or authors have resulted in a book being given a new id. So Book #38 might become Book # 1793, but the Date (added to library) didn't change. I'm unsure whether that can still happen, IIRC it was tied up with the vagaries of one of the file systems calibre supports.

BR
BetterRed is online now   Reply With Quote
Old 10-19-2022, 12:10 PM   #7
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,913
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by BetterRed View Post
+
Providing you don't change the Date column, then if you sort the book list by Date you'll get much the same result as sorting it by book-id.

As well as gaps caused by book removals and merges, changes to book title and/or authors have resulted in a book being given a new id. So Book #38 might become Book # 1793, but the Date (added to library) didn't change. I'm unsure whether that can still happen, IIRC it was tied up with the vagaries of one of the file systems calibre supports.

BR
↑ ↑ ↑ ✔
Another fine reason to not repurpose (tamper with) a (system) column

+1 for using an intake Library (Not a VL)
theducks is offline   Reply With Quote
Old 10-20-2022, 12:24 AM   #8
JohnnyBook
Groupie
JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.
 
Posts: 191
Karma: 126824
Join Date: Dec 2008
Location: Out There
Device: K3 W/3G (Fixed screen!) & Paperwhite Wifi
Quote:
Originally Posted by BetterRed View Post
+
Providing you don't change the Date column, then if you sort the book list by Date you'll get much the same result as sorting it by book-id.

As well as gaps caused by book removals and merges, changes to book title and/or authors have resulted in a book being given a new id. So Book #38 might become Book # 1793, but the Date (added to library) didn't change. I'm unsure whether that can still happen, IIRC it was tied up with the vagaries of one of the file systems calibre supports.

BR
But if the book you add has already been entered in Calibre at some time in the past, and comes with a "metadata.opf" (which conveniently contains the info such as: summaries, tags, publishers, etc.) it also brings with it, the Date Added to library, from the previous calibre library.

So unless you strip out the "metadata.opf" files your date added info is not always correct.
JohnnyBook is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Renumbering notes roger64 Editor 9 11-27-2020 02:42 AM
Metadata knowing bookID (outside the ui) botmtl Development 6 11-29-2017 12:02 PM
Getting BookId from viewer plugin Terisa de morgan Plugins 7 10-26-2016 04:54 PM
ToC renumbering JSWolf Sigil 21 01-27-2012 07:01 PM
renumbering a pdf pimpoum PDF 1 04-30-2009 03:03 AM


All times are GMT -4. The time now is 08:47 PM.


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