View Single Post
Old 11-12-2011, 02:54 PM   #1
Mar2zz
{insert custom title}
Mar2zz began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Sep 2010
Location: North of Ned'r Landum
Device: Bebook Reader 2010
Unhappy calibredb bugged?

I am having trouble listing using the calibredb commandline interface on a headless server (no X so can't start gui there).

I can add books with calibredb add --with-library=$HOME/Ebooks -r "Philip Kerr" for example. That works.

But I want to list them right after that. calibredb isn't verbose when it's adding books, so I don't know which titles were added when I didn't know which books of Philip Kerr I have in that folder.

calibredb list doesn't work, not even calibredb list --help which should give syntax on how to use it according to the output of calibredb --help.
Code:
Traceback (most recent call last):
  File "site.py", line 58, in main
  File "site-packages/calibre/library/cli.py", line 1192, in main
  File "site-packages/calibre/library/cli.py", line 159, in command_list
  File "site-packages/calibre/library/cli.py", line 51, in get_db
ValueError: No saved library path, either run the GUI or use the --with-library option
As I cannot run calibre GUI on my server I always specify --with-library=/path/to/library (or do I have to set it like /path/to/metadata.db?)

2 questions:
1. Can I set calibredb add to a more verbose output (like what books are added to the db for example? like author - title output, or filelocation perhaps)

2. How do I use the list option to find the books just added? (after that I want to use other commands on them, like fetch metadata for it for example).

edit:
ubuntu server 10.04 32bit, calibre 0.8.26

Last edited by Mar2zz; 11-12-2011 at 02:57 PM. Reason: systemspecs
Mar2zz is offline   Reply With Quote