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 12-25-2017, 07:09 AM   #1
Basilicum
Junior Member
Basilicum began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jun 2012
Device: none
identifying Calibre books

I would like to have an unique number that identifies the book object, rather than relying on title or author that can change.

I found the calibre_id, but not sure this id will survice database replication, splitting and merging. This one seems not to fullful my requirements.

There is also a UUID in the OPF file, but I couildn't find any information who issues this UUID and when. Maybe I could use this one. Can anyone tell me:
is the UUID always generated when a book is created ?
is the UUID never changed ?

Is the OPF file always present ?

thnaks , Basilicum
Basilicum is offline   Reply With Quote
Old 12-25-2017, 10:46 AM   #2
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
Quote:
Originally Posted by Basilicum View Post
I would like to have an unique number that identifies the book object, rather than relying on title or author that can change.

I found the calibre_id, but not sure this id will survice database replication, splitting and merging. This one seems not to fullful my requirements.

There is also a UUID in the OPF file, but I couildn't find any information who issues this UUID and when. Maybe I could use this one. Can anyone tell me:
is the UUID always generated when a book is created ?
is the UUID never changed ?

Is the OPF file always present ?

thnaks , Basilicum
The UUID for a specific book ID plus that ID itself are created by Calibre upon addition to a Library. They are static, as the unique key for a book in Calibre is the book ID (not the Author and Title), and a book ID has only one (1) corresponding UUID. By the way, each Library has a unique UUID too (unless you use your OS file manager to clone it), as does your unique installation of Calibre. The latter is how Calibre keeps statistics on how many users in a specific country in the world are using Calibre.

If you copy a book from a source Library to target Library using Calibre's "Copy", the copied book acquires both a new book ID and a new UUID in the target Library.

If you split each chapter of an epub into its own epub, then each new epub would have both its own ID and UUID.

If you use your OS file manager to replicate an entire Library, including its metadata.db and all of its subordinate folders, then that "new" Library is just a clone, and nothing will change until you use Calibre to change the books within the cloned Library.

The .opf files may or may not be present, and may or may not be "current". That totally depends on how long you leave Calibre running so it can automatically back up any changed metadata to the .opf file for each book that was changed. If you delete them, then obviously they will not exist. You can quickly refresh en masse all .opf files for a particular Library using the calibredb utility. Refer to the online user manual for calibredb.

If a standard Identifier such as ISBN does not work for you, perhaps your own new personal UUID-like value in a Custom Column might work except for possibly when you "merge" books and the source and target books have different personal identifiers. You control that. You would also have to ensure that your personal Custom Column exists in all of your Libraries so a book's identifying value is not "lost" when copying or moving.



DaltonST

Last edited by DaltonST; 12-25-2017 at 10:48 AM.
DaltonST is offline   Reply With Quote
Advert
Old 12-26-2017, 09:10 PM   #3
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,339
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
uuids are never changes, unless you copy a book from one library to another, in which case the book copy gets a new uuid. IIRC even doing a database rebuild will preserve uuids. And OPF files are a backup mechanism, theya re auto-generated by calibre for each book record some time after the metadata for theat book is changed.
kovidgoyal is online now   Reply With Quote
Reply

Tags
calibre, identifiers, uuid


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Identifying epub books with large file splits? mcgarvan Conversion 6 07-22-2016 05:59 AM
Identifying kindle books jaydusold Conversion 2 01-02-2013 09:25 AM
Vox Identifying books that have been read robroy9876 Kobo Tablets 3 10-15-2012 05:33 AM
Help identifying this tablet. dwoolley Android Devices 33 11-28-2011 11:35 AM
Identifying PID f64club Kindle Formats 15 06-22-2009 12:10 PM


All times are GMT -4. The time now is 07:44 AM.


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