|03-17-2012, 12:23 PM||#1|
Join Date: May 2008
Need help with adding books via calibredb
Hi guys, I'm pretty much stuck on something I'm trying to do.
I'm trying to add a bunch of pdf files to calibre via calibredb and then, add the metadata. All this via powershell
Each folder has 20-30 pdfs to add.
A rough explanation of what I'm doing.
1.) Look at directory, add the first file to calibre
2.) using the list function, return the calibreid
3.) add metadata for such metadata
4.) add file 2 to calibre, increment the calibreid by 1 (querying everytime was giving me inconsistent problems, figured I was querying too much, so decided to use list function only on the first book.
5.) add metadata
My script works out pretty well, except it gets hung up on a few directories, and I figure out why. Basically, after the first file (which never seems to be added to calibre as I don't see it anywhere), and then run the list command, I get an error msg. I've tried the same commands in cmdline and get same error.
Here's what happens:
C:\temp\Journals\Vol. 11, No. 3 (Oct., 1955)>calibredb add -d --with-library \\WHS\Library\Magazines 2382913.pdf IneptPDF: Calibre configuration directory = C:\Users\Benji\AppData\Roaming\calibre IneptPDF: Keyfile calibre-adeptkey.der found in config folder. Ready to start decrypting. IneptPDF: Encryption successfully removed. Backing up metadata Notifying calibre of the change C:\temp\Journals\Vol. 11, No. 3 (Oct., 1955)>calibredb list --with-library \\WHS\Library\Magazines id title authors Python function terminated unexpectedly [Errno 12] Not enough space (Error Code: 1) Traceback (most recent call last): File "site.py", line 132, in main File "site.py", line 109, in run_entry_point File "site-packages\calibre\library\cli.py", line 1206, in main File "site-packages\calibre\library\cli.py", line 197, in command_list IOError: [Errno 12] Not enough space
Also the file itself seems fine, I'm able to open it, check the contents, etc...
Any idea why it's failing?
Any help greatly appreciated!
|03-17-2012, 12:31 PM||#2|
creator of calibre
Join Date: Oct 2006
Location: Mumbai, India
The list command is generating too much output for the windows console to handle. Redirect it to a file.
|Thread Tools||Search this Thread|
|Thread||Thread Starter||Forum||Replies||Last Post|
|Adding books||RiotGrrl||Library Management||4||05-01-2011 05:22 AM|
|Adding Books||cityzen||Library Management||3||04-15-2011 12:51 AM|
|Adding PDF books||Sweetpea||Calibre||15||09-21-2010 12:03 PM|
|Help with adding books please||stustaff||Calibre||12||10-27-2009 02:30 PM|
|Error adding books||Gfinch||Calibre||2||08-03-2008 08:36 PM|