Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 03-18-2010, 01:32 AM   #1
al35
Enthusiast
al35 began at the beginning.
 
Posts: 38
Karma: 10
Join Date: Aug 2008
Device: PRS505
Saving metadata to file?

I might be missing something trivial here, but I can't find any way to save the manually edited metadata to file. Is there any way to update the metadata in the actual ebook file, not only in the database? Thanks.
al35 is offline   Reply With Quote
Old 03-18-2010, 02:53 AM   #2
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by al35 View Post
I might be missing something trivial here, but I can't find any way to save the manually edited metadata to file. Is there any way to update the metadata in the actual ebook file, not only in the database? Thanks.
Metadata is updated in the file when:

1. You convert the file, file in Calibre library is updated.
2. You transfer file to device, file on device is updated.
3. You save file to disk, file on disk is updated.
DoctorOhh is offline   Reply With Quote
Advert
Old 03-18-2010, 09:45 AM   #3
Zipr
Zealot
Zipr began at the beginning.
 
Posts: 99
Karma: 30
Join Date: Mar 2010
Location: Grapevine, TX
Device: Sony PRS505
Is metadata stored in the files (books)? I thought all that was stored in the database file. If metadata was in the files then you should be able to recreate a lost library from the files themselves, which I don't think you can do.
Zipr is offline   Reply With Quote
Old 03-18-2010, 12:34 PM   #4
pilotbob
Grand Sorcerer
pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.
 
pilotbob's Avatar
 
Posts: 19,832
Karma: 11844413
Join Date: Jan 2007
Location: Tampa, FL USA
Device: Kindle Touch
Quote:
Originally Posted by Zipr View Post
Is metadata stored in the files (books)? I thought all that was stored in the database file. If metadata was in the files then you should be able to recreate a lost library from the files themselves, which I don't think you can do.
That's correct. The metadata is stored in the database. The original ebooks are not modified in any way. That is a big mantra of Kovid's to not every modify or delete your source ebook files.

So, if you only have the ebook files and you loose the database then the edited metadata is gone.

Of course, if you have converted the files to another format that new metadata will be in it... but not all of it.

If you do a save to disk it can save out a file that contains all your metadata... so doing a "save to disk" is like doing a backup of your library. If you do an import from your "save to disk" folder then it will recover all your metadata also.

BOb
pilotbob is offline   Reply With Quote
Old 03-18-2010, 03:42 PM   #5
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by Zipr View Post
you should be able to recreate a lost library from the files themselves, which I don't think you can do.
Quote:
Originally Posted by pilotbob View Post
If you do a save to disk it can save out a file that contains all your metadata... so doing a "save to disk" is like doing a backup of your library. If you do an import from your "save to disk" folder then it will recover all your metadata also.
Every now and then I select every book and do a save to disk. As Bob said this does save all your metadata. I have deleted all of my books and then added from my save to disk directory (to test) and everything was recreated. All summaries, series authors etc...
DoctorOhh is offline   Reply With Quote
Advert
Old 03-18-2010, 03:48 PM   #6
Desertway
Addict
Desertway ought to be getting tired of karma fortunes by now.Desertway ought to be getting tired of karma fortunes by now.Desertway ought to be getting tired of karma fortunes by now.Desertway ought to be getting tired of karma fortunes by now.Desertway ought to be getting tired of karma fortunes by now.Desertway ought to be getting tired of karma fortunes by now.Desertway ought to be getting tired of karma fortunes by now.Desertway ought to be getting tired of karma fortunes by now.Desertway ought to be getting tired of karma fortunes by now.Desertway ought to be getting tired of karma fortunes by now.Desertway ought to be getting tired of karma fortunes by now.
 
Posts: 313
Karma: 1701842
Join Date: Mar 2010
Device: Kindle Oasis 3
Does the metadata become embedded if I convert from say, ePub to ePub? I often do that to change covers or make other small changes. It seemed to me that the metadata was written to the file.
Desertway is offline   Reply With Quote
Old 03-18-2010, 04:48 PM   #7
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by Desertway View Post
Does the metadata become embedded if I convert from say, ePub to ePub? I often do that to change covers or make other small changes. It seemed to me that the metadata was written to the file.
I did a epub to epub conversion then looked at the metadata in Sigil. What Sigil showed was

Title
Author
Language
ISBN
Tags
Book Producer
Comments (not labeled, but summary I included was there every time.)
Publisher

Items not present

Series
Rating
Published Date

Last edited by DoctorOhh; 03-18-2010 at 04:57 PM.
DoctorOhh is offline   Reply With Quote
Old 03-18-2010, 04:59 PM   #8
Desertway
Addict
Desertway ought to be getting tired of karma fortunes by now.Desertway ought to be getting tired of karma fortunes by now.Desertway ought to be getting tired of karma fortunes by now.Desertway ought to be getting tired of karma fortunes by now.Desertway ought to be getting tired of karma fortunes by now.Desertway ought to be getting tired of karma fortunes by now.Desertway ought to be getting tired of karma fortunes by now.Desertway ought to be getting tired of karma fortunes by now.Desertway ought to be getting tired of karma fortunes by now.Desertway ought to be getting tired of karma fortunes by now.Desertway ought to be getting tired of karma fortunes by now.
 
Posts: 313
Karma: 1701842
Join Date: Mar 2010
Device: Kindle Oasis 3
Quote:
Originally Posted by dwanthny View Post
I did a epub to epub conversion then looked at the metadata in Sigil. What Sigil showed was

Title
Author
Language
ISBN
Tags
Book Producer
Comments (not labeled, but summary I included was there every time.)
Publisher

Items not present

Series
Rating
Published Date
Thanks for the test! That works for me.
Desertway is offline   Reply With Quote
Old 03-18-2010, 05:54 PM   #9
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by dwanthny View Post
Every now and then I select every book and do a save to disk. As Bob said this does save all your metadata. I have deleted all of my books and then added from my save to disk directory (to test) and everything was recreated. All summaries, series authors etc...
Just a reminder for others: For this to work, there are two options in the Preferences|Save that have to be on. They are the two that start with "Save," namely the "Save metadata in OPF file" and the Save cover separately." Otherwise, you may lose the cover or metadata. Fortunately, they are on by default.
Starson17 is offline   Reply With Quote
Old 03-18-2010, 06:36 PM   #10
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by Starson17 View Post
Just a reminder for others: For this to work, there are two options in the Preferences|Save that have to be on. They are the two that start with "Save," namely the "Save metadata in OPF file" and the Save cover separately." Otherwise, you may lose the cover or metadata. Fortunately, they are on by default.
Thank god for default settings or in this case Kovid for the foresight.
DoctorOhh is offline   Reply With Quote
Old 07-20-2010, 10:44 AM   #11
aritza
Member
aritza began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Jul 2010
Device: Calibre
I'm new to Calibre and I am liking it more and more. My heart-felt thanks to Kovid!

On this topic, however, I must say I disagree and I wish there was a simple way to save the metadata to the file, even if it wasn't by default. Having to export the files is not a simple way to do it.
aritza is offline   Reply With Quote
Old 07-20-2010, 11:12 AM   #12
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by aritza View Post
On this topic, however, I must say I disagree and I wish there was a simple way to save the metadata to the file,
What is it you disagree with, and what file do you want to save the metadata to? Do you want to save metadata in an .opf file? (There are command line utils that create an opf file and Save to Disk will also give you an opf file.)

Do you want to update the ebook internal metadata for a copy of your ebook on your ereader device or on your disk? (Calibre does this automatically with Save to Disk and Send to Device).

Do you want to update the metadata of an ebook inside Calibre's database? (I don't know why you would want to do this, since it changes your master imported book and it's automatically updated during Send, Save and Convert operations anyway, but if you want to do it, just do a convert to the same format.)

What more do you want?

Last edited by Starson17; 07-20-2010 at 11:16 AM.
Starson17 is offline   Reply With Quote
Old 07-20-2010, 03:05 PM   #13
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,734
Karma: 6690881
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Starson17 View Post
Just a reminder for others: For this to work, there are two options in the Preferences|Save that have to be on. They are the two that start with "Save," namely the "Save metadata in OPF file" and the Save cover separately." Otherwise, you may lose the cover or metadata. Fortunately, they are on by default.
Small warning: custom column metadata is currently not stored in the OPF at all. That is on the todo list.
chaley is offline   Reply With Quote
Old 07-21-2010, 11:03 PM   #14
aritza
Member
aritza began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Jul 2010
Device: Calibre
Quote:
Originally Posted by Starson17 View Post
What is it you disagree with, and what file do you want to save the metadata to? Do you want to save metadata in an .opf file? (There are command line utils that create an opf file and Save to Disk will also give you an opf file.)

Do you want to update the ebook internal metadata for a copy of your ebook on your ereader device or on your disk? (Calibre does this automatically with Save to Disk and Send to Device).

Do you want to update the metadata of an ebook inside Calibre's database? (I don't know why you would want to do this, since it changes your master imported book and it's automatically updated during Send, Save and Convert operations anyway, but if you want to do it, just do a convert to the same format.)

What more do you want?
I'm sorry I wasn't more explicit. I thought it was clear from the context.

I would really like to have the option to do #3, to save the metadata to the ebook inside Calibre's database.

I understood from the previous messages that this wasn't possible (at least without exporting and reimporting the file). Now I just learned from your message that it can be easily done inside the database by converting it to the same format. Thanks.

Still, I think this option to update the metadata inside the database should be more conspicuous and less roundabout (not necessarily the default). But that's just my opinion.
aritza is offline   Reply With Quote
Old 07-21-2010, 11:24 PM   #15
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by aritza View Post
Now I just learned from your message that it can be easily done inside the database by converting it to the same format. Thanks.

Still, I think this option to update the metadata inside the database should be more conspicuous and less roundabout (not necessarily the default). But that's just my opinion.
Whether the files inside the database have the metadata within the file updated or not is inconsequential since every method that exports a book updates the metadata in the process of that export.
DoctorOhh is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
File name when saving to a device pbj Calibre 5 01-22-2010 11:09 PM
Accessing/ re-saving downloaded epub file from within epubreader cklammer EPUBReader 3 12-06-2009 04:59 AM
MetaData from FileName and Saving Templates ThemStones Calibre 2 12-05-2009 09:17 AM
Save to Disk now saving file with full path? Mnementh Calibre 3 09-14-2009 01:24 AM
Any way to not have Caliber add numbers to file names when saving to disk JGB Calibre 13 12-09-2008 04:35 PM


All times are GMT -4. The time now is 05:55 PM.


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