![]() |
#1 |
Enthusiast
![]() Posts: 28
Karma: 10
Join Date: Nov 2013
Device: PC
|
Metadata into book, again?
I have seen this question in one form or another and the answers leave questions for me.
When metadata is updated manually, say Author, Title etc. I presume an OPF file is lodged with the book in its folder. I understand (I think) that when the book is saved to disk or sent to a device the opf file data is written into the book file in the same way as exif data in a photograph. I am presuming that Save to Disk is making a backup to another disk (I don't know if it is simply the books or the whole folder for an author or the whole library. 1. If a book is sent to a device and the opf incorporated into the book file, is it only in the copy that arrives at the device (or disk) or is it the original as well? 2. If a book is requested via catalog is the result the same or only for pushing? 3. If it is both, why is it not incorporated immediately instead of producing opf? 4. If it is only the one despatched, why? Thank you for any enlightenment. |
![]() |
![]() |
![]() |
#2 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,048
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:
![]() That is 3000 BOOK TITLES * formats to be opened and adjusted. Or simply a quick write a (BACKUP) to 3000 OPF files |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,065
Karma: 858115
Join Date: Jan 2011
Device: Kobo Clara, Kindle Paperwhite 10
|
The OPF is mainly for calibre to use as a backup if you ever have to restore the database.
The metadata resides in the backend database tables and is stored in file metadata.db. As I understand it, conversion or export (save, send, email, get from content server) update some metadata internal to the book format, depending on the type of format, of the exported or converted copy, but not in the original base format the convert or export used to make the copy. Polish Books (EPUB or AZW3 only) or plugin Modify ePub (EPUB only) can update metadata in the base format without a conversion. In preferences for Saving to disk, there is a tick box to save the OPF file along with the book, or not. Last edited by unboggling; 12-03-2013 at 04:53 PM. Reason: clarification per BetterRed in #5 on polish & mod epub. |
![]() |
![]() |
![]() |
#4 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
When you update metadata in a book, record, the database records that, writes to the OPF as a backup, just in case, and leaves the original alone. ANY time you send the book anywhere -- email, save to disk, send to device, download via calibre content server, it updates all metadata fields that the format supports in the process. If you must see that in your original copy too, Polish ebooks can manually start that process, but depending on how many books you have, it will take quite some time...
There really is no need. It never leaves calibre without the update. |
![]() |
![]() |
![]() |
#5 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,722
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
BR |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
You could also do a save whole library to disk and import (using option 2 in Add Books) into a new library called "updated metadata" or something. All supported metadata is updated in a save to disk, with no undesirable side effects.
|
![]() |
![]() |
![]() |
#7 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,065
Karma: 858115
Join Date: Jan 2011
Device: Kobo Clara, Kindle Paperwhite 10
|
Quote:
Does like to like conversion update the metadata in the input format and the output format? Or only in the output format, which is what I'd assumed? |
|
![]() |
![]() |
![]() |
#8 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,722
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
BR |
|
![]() |
![]() |
![]() |
#9 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
|
![]() |
![]() |
![]() |
#10 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,065
Karma: 858115
Join Date: Jan 2011
Device: Kobo Clara, Kindle Paperwhite 10
|
Quote:
The term "save to disk" is a bit misleading. Calibre automatically updates all the changes you make to metadata very soon after you make the changes, automatically updating database.db (as well as the OPF). [Edit] Calibre automatically "saves" formats to the relevant book folder in the calibre library folder, whenever user adds or removes a format through calibre interface.[/Edit] Last edited by unboggling; 12-04-2013 at 04:55 AM. Reason: clarify |
|
![]() |
![]() |
![]() |
#11 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,065
Karma: 858115
Join Date: Jan 2011
Device: Kobo Clara, Kindle Paperwhite 10
|
|
![]() |
![]() |
![]() |
#12 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,722
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@enonod - The Save to Disk feature is not intended to be used as a means to take library backups. It is primarily provided to allow users to copy the format files into a different folder structure with different file naming rules. It is possible to reconstruct a library from those folders and files via Add Books, however this could result in metadata loss.
Calibre does not have a facility to backup and restore libraries, I suggest using the same process as is used for other data - documents, emails, images, music etc. I do an incremental backup of all my data every day to an external drive and once a week to commercial FTP service. The daily backup rarely takes more than 5 minutes, mostly two or three, the weekly backup typically takes about an hour. I normally run the backup within a shutdown script. BR |
![]() |
![]() |
![]() |
#13 |
Enthusiast
![]() Posts: 28
Karma: 10
Join Date: Nov 2013
Device: PC
|
Thank you to everyone who responded and provided me (and some participants) with valuable information.
I felt that one question was not clearly answered until the final response from BetterRed. in 1. I wanted to know whether the book was updated only in the dispatched book, or the original as well. BetterRed's answer seems to be indicated by the fact that books would need to be imported back to get the changes registered. In 4, as a result of that conclusion, I wanted to know why the change is made in the copy departing and leaves the original. Why not change the original and then dispatch a copy. I understand the 'hands off' aspect of the library, but with photography the same type of library can be used but the metadata (keywords or categories) are usually saved direct to the photographs as well as the database. In that way it is always safe to assume that 'any' database could be constructed from the metadata contained in the images and a specific database is not required. At the instant the keywords are added to the database, they are written to the image and it takes a fraction of a second. If a 'session' of key-wording takes place then the user equally suffers the same time penalty mentioned in the first reply. I note that if an author is changed the (sometimes very large) books are moved, which is no less time consuming and makes the folders inviolable. Why is that not considered equally bad to updating metadata? In fact a faster operation in itself. This is not criticism but a genuine attempt at fully understanding. I wonder how many cries for help there have been in this forum because somebody 'made a mistake' or lost their 'presence of mind' or moved several books because they were doing some disk tidying etc. etc. and did not remember/realise that it would screw their Calibre, simply because that was farthest from their mind. Question 5. When the library is moved, by invoking the wizard, does the new library have the metadata written to books? I am unable to tell, through lack of knowledge of book metadata. I did this and noted that opf files were left in the old library, along with any non essential files. |
![]() |
![]() |
![]() |
#14 | ||||
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,896
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
Quote:
Quote:
Quote:
Keep in mind the old opf files have nothing to do with calibre storing metadata for books. These files are used to restore the database in case of database corruption. |
||||
![]() |
![]() |
![]() |
#15 | |||
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,722
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
b) The metadata definitions for imaging are much more mature than those available for ebooks, mainly via the EXIF, IPTC and XMP 'standards'. I suspect this is partly due to most image creators being more intimately involved with their final product - than are writers are with their books, the latter have traditionally required intermediaries, editors, publishers, distributors etc. Also imaging has broader direct usage than books generally have - eg medical, forensics, military, aerospace, manufacturing, search and rescue, surveillance, intelligence etc etc. Quote:
Quote:
BR |
|||
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Metadata not saving for 1 book | Cody_B | Library Management | 3 | 05-15-2013 07:28 PM |
Book Jacket Metadata | GeckoFriend | Library Management | 3 | 03-23-2013 07:48 AM |
Add metadata to book sometimes | DMee | Calibre | 5 | 10-10-2012 12:03 AM |
Allow metadata to be placed into book | david@tyoh.org | Calibre | 2 | 06-11-2011 06:43 AM |
Metadata for Wrong Book | Pinecone | Calibre | 2 | 01-23-2011 07:16 AM |