12-03-2014, 08:03 AM | #1 |
Connoisseur
Posts: 71
Karma: 72010
Join Date: Nov 2014
Device: none
|
opf files and managing metadata
So after a previous google search it would appear I've misunderstood metadata management all along... This isn't quite like managing my mp3 collection.
Are opf files just metadata containers? What about the calibre .db file, isn't that a metadata container? Where are all the metadata updates I'm doing in calibre being saved to? If I have a folder that contains an epup, an opf file, and jpg what is the correct method to instruct Calibre to import the metadata / cover image as well when adding the book? |
12-03-2014, 08:49 AM | #2 | |
Wizard
Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
Quote:
What metadata can be stored inside an ebook files varies according to the capabilities of the format in use. epub books for instance have an equivalent to the .opf file embedded in them. |
|
Advert | |
|
12-03-2014, 11:10 AM | #3 |
Well trained by Cats
Posts: 30,535
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
:adding to the above:
The book stored, does not automagically receive the new metadata when you make a change in Calibre. The stored book only changes (if supported by format), if you use one of the tools that causes the book to be modified Books 'Sent' (exported) get updated on the fly |
12-03-2014, 12:51 PM | #4 | ||
Connoisseur
Posts: 71
Karma: 72010
Join Date: Nov 2014
Device: none
|
Thanks everyone.
Quote:
Quote:
Any insight on this particular? Does the add book from directories do this or does that just look for ebooks and ignore opf files in the folder? Last edited by please55; 12-03-2014 at 12:56 PM. |
||
12-03-2014, 02:43 PM | #5 | |
null operator (he/him)
Posts: 21,142
Karma: 27655164
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
You can populate the database from the metadata within a book thus:
You can populate the the metadata data in a book in several ways
I can't answer the issue of adding books from a folder that contains an opf. Mainly because I can't recall any books I've purchased ever having them, I thought they were peculiar to calibre - especially if they're named metadata.opf. BR |
|
Advert | |
|
12-03-2014, 06:44 PM | #6 |
Connoisseur
Posts: 71
Karma: 72010
Join Date: Nov 2014
Device: none
|
@BetterRed - thanks. My concern was if somehow I was to lose all the work I've done in calibre library there doesn't appear to be a way to recover.
Unlike mp3 management where for the most part changes you make are saved to the mp3 itself and there's no chance of losing your work if the software (say mp3tag) stop working, corrupted, wasn't available. |
12-03-2014, 07:09 PM | #7 |
Wizard
Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
That is the purpose of the .opf files. Calibre has a facility to rebuild its database by reading the file system and finding all the .opf files it has stored with the ebook files.
|
12-03-2014, 07:25 PM | #8 |
Well trained by Cats
Posts: 30,535
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Library Maintenance:Rebuild reads those files and creates a new metadata.db.
AS LONG AS YOU NO MESS WITH THE LIBRARY OTOH if you do something dumb (using Calibre), like deleting all Tags. Those OPF files start updating immediately. (see Library Maintenance:Metadata backup status: <it shows remaining to be written> count> ) Do NOT use the button on a damaged DB, That forces the BAD DB's values to be written to OPF's |
12-03-2014, 07:28 PM | #9 |
Ex-Helpdesk Junkie
Posts: 19,421
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
In addition to the Restore Database tool (run from within a broken library, see Library Maintenance in the dropdown by the Library icon in the toolbar) you can also use the second option in Add books -- it imports one book per directory, assumes each file is the same book in a different format. What this means is if you Save to disk or even point Add books at a different library, it will read metadata from the metadata.opf and cover.jpg.
|
12-06-2014, 11:27 PM | #10 |
Connoisseur
Posts: 71
Karma: 72010
Join Date: Nov 2014
Device: none
|
Thanks everyone.
**Edit** One final question about metadata. If you create custom fields I imagine those aren't saved to the file even when a conversion / polish is done. Is there somewhere to look up the set of metadata that is stored for epub files? Last edited by please55; 12-07-2014 at 01:23 AM. |
12-07-2014, 01:35 AM | #11 |
Grand Sorcerer
Posts: 24,905
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Actually, the custom columns are written to the metadata in the books. Another calibre installation will read them when you put the books in the library, but not many other applications will.
|
12-07-2014, 01:41 AM | #12 | |
null operator (he/him)
Posts: 21,142
Karma: 27655164
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
If you want to know about OPF start here ==>> International Digital Publishing Forum | The Trade and Standards Organization for the Digital Publishing Industry BR |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
calibre - Not using existing metadata from *.opf files when Add books | rolandt99 | Library Management | 19 | 06-15-2020 05:43 PM |
metadata & OPF files | u238110 | Conversion | 9 | 12-03-2014 12:28 PM |
TWO OPF files or something like Media Queries in the OPF file for KF8 and MOBI? | DHahn | Kindle Formats | 3 | 04-17-2012 05:06 AM |
What is metadata.opf | jla888 | Calibre | 5 | 10-14-2010 06:46 PM |
Mobigen opf metadata | tibiafry | Kindle Formats | 2 | 04-15-2009 05:07 AM |