cam1170: calibre stores the metadata it downloads in a OPF file that contains XML. See example here: http://0x0.st/ojV5.opf This data can be inserted in a PDF in place with the ebook-meta utility bundled with calibre. This is a solution to the problem of having to create a copy of the PDF to embed the metadata.
cam1170
Yeah seems it's a command-line tool which is usually the opposite of easy, glad there's a solution
rdrg109
cam1170: Yes, it also poses a new problem: If you change a field of your PDF outside calibre, the OPF file is not updated and therefore, the next time you run ebook-meta on that OPF, the value you had in your PDF is overwritten.
cam1170
Sounds like a experiment, but try deleting the OPF etc, that might force it to rescan
Unless calibre has a backup of all of your OPFs somewhere. I haven't tried it
rdrg109
cam1170: What if the OPF has some relevant data that I downloaded within calibre but didn't have enough time to save it in my PDF so it is just in the OPF? :(
This is the solution I propose: Store a custom field in your PDF for the last time you compared its metadata with the ones provided in the OPF file. Now, write a script that compares that time with the modification time of the OPF file. When the OPF is newer than the last time, add the metadata that only exists in the OPF file and for that data that exists in both in the PDF and the OPF,
prompt the user which value is preferred: the one from the PDF or the one from OPF? The one that is preferred is updated in both the PDF and the OPF.
cam1170
If I was doing that, and we're talking about books that normally stay in the calibre-formatted library, I wouldn't use any editors that change the PDF other than calibre, so the OPF would always be up-to-date. For my comics I embed the comicvine info in them with comictagger then use the Embed Comic Metadata plugin to get the info into calbre.
crism
Check the MOTD: “See #bookbrainz for BookBrainz”… not trying to be a buzzkill but I think you may get better answers over there.
rdrg109
crism: no problem, I think we can continue the discussion over there
sorry for the off-topic
crism
np!
cam1170 has quit
cam1170 joined the channel
Vacuity has quit
Vacuity joined the channel
Erin has quit
Erin joined the channel
vzctr has quit
trolley has quit
Erin has quit
ErBear joined the channel
ErBear is now known as Erin
skelly37 joined the channel
KevlarNoir has quit
KevlarNoir joined the channel
fireglow has quit
fireglow joined the channel
KevlarNoir has quit
KevlarNoir joined the channel
crism has quit
crism joined the channel
G0d joined the channel
KevlarNoir has quit
ttpcodes has quit
ttpcodes joined the channel
zer0bitz joined the channel
KevlarNoir joined the channel
ttpcodes has quit
ttpcodes_ joined the channel
ttpcodes_ has quit
ttpcodes joined the channel
zane joined the channel
fhe joined the channel
KevlarNoir has quit
skelly37 has quit
skelly37 joined the channel
crism has quit
crism joined the channel
skelly37 has quit
ttpcodes_ joined the channel
ttpcodes has quit
crism has quit
crism joined the channel
elomatreb[m]
Zane: there is no way to revert edits, you’ll have to edit the release manually