View Single Post
Old 04-26-2012, 07:27 AM   #11
Demosthenex
Member
Demosthenex began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Dec 2011
Device: Pocketbook 702
Quote:
Originally Posted by kovidgoyal View Post
There's no single field way of setting metadata from the command line.
I just revisited this issue after leaving it alone for a long duration. I noticed that calibredb's add command allows me to specify title, isdn, author, and several other metadata items from the command line.

Could you consider it a feature request to add a parameter that accepts a key/value pair, and may only work for valid metadata keys (including custom ones)?

For example:

$ calibredb add -t "Book title" myfile.pdf

would be equivalent to, assuming -m is for metadata:

$ calibredb add -m "title=Book title" myfile.pdf

Keys would likely be restricted to a single lowercase word that corresponds to the "lookup name" or column key. Multiple instances of -m should be supported for multiple keys.

I could see this as being useful for any number of potential applications, not just for storing a URL.

Thanks for your consideration.
Demosthenex is offline   Reply With Quote