Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 05-21-2025, 04:41 PM   #1
whiteowl
Junior Member
whiteowl began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jan 2020
Device: none
Question How to update book file with edited metadata?

I imported a book, which has an incorrect title inside the book's metadata.

For example, lets say the book title is set to "LoTR" instead of "The Lord of the Rings". After importing book into my local library, it is shown in the list of books as "LoTR".

I immediately edit book title in the list to proper name.

But the shortened name remain inside the fb2 file on disk. And if I now try to convert-export the book to an external e-book device - it would receive the shortened name, not the corrected one.

How to synchronize the title inside the book file with the one I just typed in Calibre's GUI?
whiteowl is offline   Reply With Quote
Old 05-21-2025, 05:36 PM   #2
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,247
Karma: 145488788
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by whiteowl View Post
I imported a book, which has an incorrect title inside the book's metadata.

For example, lets say the book title is set to "LoTR" instead of "The Lord of the Rings". After importing book into my local library, it is shown in the list of books as "LoTR".

I immediately edit book title in the list to proper name.

But the shortened name remain inside the fb2 file on disk. And if I now try to convert-export the book to an external e-book device - it would receive the shortened name, not the corrected one.

How to synchronize the title inside the book file with the one I just typed in Calibre's GUI?
There is nothing you can do. You cannot edit the metadata of an FB2 eBook.

Do you use ePub or KF8? You can update those formats.
JSWolf is offline   Reply With Quote
Old 05-21-2025, 06:18 PM   #3
whiteowl
Junior Member
whiteowl began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jan 2020
Device: none
Quote:
Originally Posted by JSWolf View Post
There is nothing you can do. You cannot edit the metadata of an FB2 eBook.

Do you use ePub or KF8? You can update those formats.
With FB2 I can open it in any text editor and edit the file. With EPUB - I can open it in epub-editor (or unzip, vi content.opf, zip back). But that is a direct file editing.

What is KF8? The `calibre 8.4` does not know how to convert into this format.

And yes, I know how to directly edit book files. But if I have a GUI - why not use it? And I am guessing there are many people who are not as tech savvy - how do they export book to device if the file's metadata does not match library's metadata?
whiteowl is offline   Reply With Quote
Old 05-21-2025, 07:18 PM   #4
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 13,225
Karma: 237677417
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
If you send the book to the device from calibre, via the GUI (not the library folder), the metadata will be embedded in the file. I don't know if that's true for FB2 as well.

If you copy the file from the library folder, the metadata won't be embedded. In that case, you'll have to embed it before copying. There are several ways of doing that, but again, I don't know if they can be used with FB2.
Sirtel is online now   Reply With Quote
Old 05-21-2025, 08:28 PM   #5
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 45,026
Karma: 168808719
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by whiteowl View Post
What is KF8? The `calibre 8.4` does not know how to convert into this format.
KF8 is Amazon's name for the ebook format that calibre calls azw3.

Quote:
Originally Posted by whiteowl View Post
And yes, I know how to directly edit book files. But if I have a GUI - why not use it? And I am guessing there are many people who are not as tech savvy - how do they export book to device if the file's metadata does not match library's metadata?
Hmmm... you could convert the fb2 file to ePub, update the metadata using either the Polish tool or the Modify Epub plugin and then convert back to fb2. Personally, since fb2 is not a very capable format, I would suggest using ePub instead. Even fb3 is not that great. Any format that stores images in Base64 is, IMO, lacking.

And note that for formats where calibre is capable of modifying the metadata, you can select to have that done on Save to disk while, as far as I am aware, it is automatic for Send to device.
DNSB is online now   Reply With Quote
Old 05-21-2025, 10:42 PM   #6
whiteowl
Junior Member
whiteowl began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jan 2020
Device: none
Quote:
Originally Posted by DNSB View Post
Hmmm... you could convert the fb2 file to ePub, update the metadata using either the Polish tool or the Modify Epub plugin and then convert back to fb2.
That is possible, but very round-about.
I can as easy click on "folder book files" link at the bottom of detailed pane, open fb2 in vi/notepad, and modify the file directly. It is very simple if you understand the format. Easy from technical point of view, but not a GUI way.


Quote:
Originally Posted by DNSB View Post
And note that for formats where calibre is capable of modifying the metadata, you can select to have that done on Save to disk while, as far as I am aware, it is automatic for Send to device.
No, I checked. "Save to disk" as well as "Convert" and "Export to device" do not use metadata from the library. Metadata always comes from the file.

So far, the original question remain: how to update metadata in the book file from metadata in the library?
whiteowl is offline   Reply With Quote
Old 05-21-2025, 10:53 PM   #7
whiteowl
Junior Member
whiteowl began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jan 2020
Device: none
Quote:
Originally Posted by Sirtel View Post
If you copy the file from the library folder, the metadata won't be embedded.
Metadata is always embedded. It is, after all, what defines a "book" file formats - the book file always have a metadata describing the actual text.
It does not matter which format we are talking about. I use fb2 and epub in this topic only because both formats are easy to modify by external tools.

The problem here is that if we load a book into calibre (in one format), convert it to another format - we now have three sets of metadata (two book files, and library itself) and all three can differ between each other.
whiteowl is offline   Reply With Quote
Old 05-21-2025, 11:38 PM   #8
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 13,225
Karma: 237677417
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by whiteowl View Post
No, I checked. "Save to disk" as well as "Convert" and "Export to device" do not use metadata from the library. Metadata always comes from the file.

So far, the original question remain: how to update metadata in the book file from metadata in the library?
This is not my experience, or the experience of other users here. So maybe Calibre is incapable of embedding metadata with the fb2 format.
Sirtel is online now   Reply With Quote
Old Yesterday, 12:42 AM   #9
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,216
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
calibre definitely supports setting basic metadata in fb2. title/author/series/tags/comments/covers. But no custom metadata IIRC.
kovidgoyal is offline   Reply With Quote
Old Yesterday, 01:35 AM   #10
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 45,026
Karma: 168808719
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by whiteowl View Post
No, I checked. "Save to disk" as well as "Convert" and "Export to device" do not use metadata from the library. Metadata always comes from the file.

So far, the original question remain: how to update metadata in the book file from metadata in the library?
Interesting. My experience is that if I have the checkmark present for Update metadata in saved copies, my ePub files get the metadata updated when Saving to disk. Sending to device always gets the updated metada for my ePub files.

As I said, I can use the Polish tool for azw3, ePub and kepub books while Modify Epub works on epub/kepub books.

I tested on a single fb2 file and the basic metadata was updated. There seems to be no support for other metadata in the fb2 format. OTOH, my saved to disk copy grew by about 2MB since the new cover image was added and it was a 1125x1500 jpg compared to the original 450x600 image.

OTOH, using fb2 is about the same level as insisting on using mobi format.

The next bit is the first part of the fb2 file after the save to disk. I manually edited the metadata in calibre to make sure it was different from the metadata embedded during the conversion from ePub and the save to disk copy matched the edited metadata.
Spoiler:
Quote:
<?xml version="1.0" encoding="UTF-8"?>
<FictionBook xmlns="http://www.gribuser.ru/xml/fictionbook/2.0" xmlns:l="http://www.w3.org/1999/xlink">
<description>
<title-info>
<book-title>The End of All Times</book-title>
<author><first-name>Carissa</first-name><last-name>Martin</last-name></author>
<sequence name="Time Jumper" number="2"/>
<annotation><p>The peace talks have broken down and now the entire time line is at risk.</p><empty-line/></annotation>
<genre>antique</genre>
<coverpage><image l:href="#img_0"/></coverpage>
<lang>en</lang>
</title-info>
<document-info>
<author><first-name>Carissa</first-name><last-name>Martin</last-name></author>
<program-used>calibre 8.4.100</program-used>
<date>21.5.2025</date>
<id>b02426f4-7725-472b-ac24-6dbcc289878b</id>
<version>1.0</version>
</document-info>
<publish-info>
<year>2025</year><publisher>Animal Court Press</publisher><isbn>1230463210529</isbn>
</publish-info>
</description>

Last edited by DNSB; Yesterday at 01:44 AM.
DNSB is online now   Reply With Quote
Old Yesterday, 07:55 AM   #11
whiteowl
Junior Member
whiteowl began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jan 2020
Device: none
Quote:
Originally Posted by DNSB View Post
My experience is that if I have the checkmark present for Update metadata in saved copies
Oh! Found it. That check was not set on my machine. So yes, now metadata is updated if I "Save to disk".

But I want to update the book information while the book file is still in the library. I usually download books to cell phone through the OPDS web site. In this case the book file is sent as is. Hence the desire to update the book without exporting it out of the library.
whiteowl is offline   Reply With Quote
Old Yesterday, 01:37 PM   #12
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 45,026
Karma: 168808719
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
As far as I know, updating the metadata in the library is only possible for azw3 and epub/kepub. You could write a plugin to update the metadata for a fb2 ebook (most plugins are written by the person who wants the added functionality).
DNSB is online now   Reply With Quote
Old Yesterday, 01:40 PM   #13
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,216
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
The embed metadata tool available from Preferences->toolbars will embed metadata in all formats that calibre can write metadata to.
kovidgoyal is offline   Reply With Quote
Old Yesterday, 01:45 PM   #14
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 45,026
Karma: 168808719
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Thanks. I've never used that tool since I was under the impression that Polish did the same but with more options.
DNSB is online now   Reply With Quote
Old Yesterday, 10:56 PM   #15
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,216
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Polish is definitely preferable if you are working with one of the formats it supports, but for all the rest embed metadata is the ticket.
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Metadata for edited volume mr3000jr Library Management 3 12-23-2020 10:28 AM
Where is my edited EPUB file? crowwoods1 Editor 18 08-29-2020 01:39 PM
Glo Update library cover art after re-download of edited book ? leftright Kobo Reader 3 10-06-2013 01:55 AM
Edited metadata not loading on kindles KRT Amazon Kindle 3 11-02-2012 09:40 AM
Lost Edited Metadata roxy62 Library Management 1 02-23-2011 09:56 PM


All times are GMT -4. The time now is 07:34 PM.


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