Umm there are commands to accomplish all those tasks in the calibre command line interface.
To find a book id
calibredb search
to get book metadata
ebook-meta --as-opf
to update metadata in a book record
calibredb set_metadata --from-opf
and so on. You just need to compose them correctly.
|