View Single Post
Old 12-21-2009, 04:21 AM   #5
davotibarna
Member
davotibarna began at the beginning.
 
davotibarna's Avatar
 
Posts: 17
Karma: 10
Join Date: Dec 2009
Location: Oslo, Norway
Device: Nook
I was aware of the calibredb list command, but then I have to parse its output. The whole workaround becomes lot more complex. Doable of course, but it'd be much easier if the add command could set metadata also.

Question 1:
-----------
How to use the set_metadata command is not clear to me.
calibredb set_metadata [options] id /path/to/metadata.opf

I don't have .opf file a metadata.db file.
There should be a metadata value argument also, right? I don't know where to define the metadata value. Post me an example please.

Question 2:
-----------
There is a setting in the preferences:
"Automatically send downloaded news to ebook reader"

... which works fine for the ebooks downloaded by the GUI, but not when I add an ebook via the CLI, even I set the metadata (via the GUI) to "News". Do you have a flag somewhere which indicates this is a news?
davotibarna is offline   Reply With Quote