Get Calibre version from the command line
Hi. We have a need to know which version of Calibre is installed without actually running it. (We're using calibredb to create a new ebook from another application.) Apparently, there is a difference between versions 1, 2 and version 3 in what
calibredb add -d filename
calibredb list -f size
produces. In versions 1 and 2, the just added ID was in the next to last line. In version 3 it is the last line. We'd like to be able to know the version of Calibre being used so we can know which line to use with the calibredb list command.
Thanks.
|