View Single Post
Old 09-26-2017, 04:41 PM   #17
canpolat
Connoisseur
canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.
 
Posts: 92
Karma: 17950
Join Date: Mar 2013
Device: Xodo
This does not look good. There is definitely something wrong with this library (after the transfer) and I cannot tell what.

I started thinking about adding this whole folder again but that will cost me a huge amount of time if I lose the metadata. I also need to keep the Calibre Id's in addition to the metadata (due to some workflow reason).

So I tried the calibredb command line interface. I think if I can keep the Calibre Ids intact, I can try putting together a script to move the metadata from the old database to the new one. But after some testing I noticed that the add_format function does not populate the cover:

calibredb --library-path $LibraryPath add_format --duplicates $Id $DocumentPath

Few of the PDF files also contain metadata as embedded XMP and the add function did not read the metadata either (when I add the document via GUI, the metadata is populated for those that have embedded metadata).

So, before losing all hope, my question is: is there a way to use the add_format function so that it reads the embedded metadata?
canpolat is offline   Reply With Quote