Thread: Suggestions
View Single Post
Old 07-05-2016, 06:48 PM   #18
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by BetterRed View Post
@Jack_Graham - to add to the posts form Toxaris and KevinH

The 'metadata.opf' files in calibre book folders serve one purpose only, as the means to restore the library database - 'metadata.db'. Apart from the Library Maintenance->Restore Database feature, the calibre Library Manager makes no use of these files. The calibre Viewer uses the content.opf file within the ePub in its metadata overlay display.

If you look inside a metadata.opf file (with an editor like Notepad++) you'll find it lacks the spine and manifest sections which are essential to an ePub (I think ?), You might also find data related to custom columns that is absent from the corresponding content.opf file contained within the ePub file.

It might have been better if the metadata.opf files in calibre library book folders were named metadata.bak, but with over 3 million active users it's too late to contemplate doing that now.

BR
And, just because sometimes, a picture is worth a thousand words:

This is an ePUB I use for demo purposes, made from an Agatha Christie novel (introducing Tommy and Tuppence, for those who care about such things...). The OPF is a required part of ANY eBook--ePUB, MOBI...it's not some optional thing. If your eBook works, it's because the OPF is there. It's not like embedding a font--it's an integral, fundamental part of any eBook.

In 1, I've unzipped an ePUB, essentially. In 2, I've located the OPF. In 3, I've popped open the OPF, to show you where the metadata LIVES. If I'd put in a description about this book, it would be on a line within that box (the box obviously gets larger as more meta is added.)


HTH.

Hitch
Attached Thumbnails
Click image for larger version

Name:	Open_ePUB_1.png
Views:	393
Size:	92.8 KB
ID:	149924   Click image for larger version

Name:	2-Locate_the_OPF.png
Views:	403
Size:	151.9 KB
ID:	149925   Click image for larger version

Name:	3-There_is_the_Metadata.png
Views:	403
Size:	360.3 KB
ID:	149926  
Hitch is offline   Reply With Quote