View Single Post
Old 11-20-2012, 06:13 AM   #16
chaley
"chaley", not "charley"
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 5,193
Karma: 821512
Join Date: Jan 2010
Location: France
Device: Many android devices
Quote:
Originally Posted by Matsendrasana View Post
Maybe I have not made clear what I try to accomplish: I do not want to add another format, and did not asked for detailed command-lines. I just want to replace a present book in the same format because its source (LibreOffice, Asciidoc etc.) has changed.
As far as I can tell you really do want to replace the format, not add a book. The add_format command does that. Why do you want add a new book if the source file has changed instead of replacing the file in the existing book?

As for the ID, I assume that the book has some known attribute that you can use to match the book. If that attribute is title, then the following command provides trivially parsable output
Code:
calibredb list -f uuid -s "title:\"=the first lensman\""

Last edited by chaley; 11-21-2012 at 04:54 AM. Reason: add missing calibredb command
chaley is offline   Reply With Quote