![]() |
#1 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Dec 2015
Device: Kindle Fire
|
Check Library CLI not working for me
I'm trying to use the Calibre CLI for the check-library feature to check for new books not yet in the database, and to add them automatically.
Here's the syntax I'm using: Code:
calibredb check_library --library-path :D:\My Media\eBooks" > "C:\temp\calibreresults.txt" Any ideas? Thanks in advance. |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,351
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Why aren't you using the check library function in the GUI? The CLI version has no auto add, IIRC, the GUI does.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,057
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
|
|
![]() |
![]() |
![]() |
#4 |
Deviser
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
|
@umbighouse:
Do yourself a favor and create a .bat file, and run it from that. Example: calibredb backup_metadata --all --library-path="S:\Calibre\..." DaltonST |
![]() |
![]() |
![]() |
#5 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Dec 2015
Device: Kindle Fire
|
theducks-
Yes, sorry- that looks like a typo. The path is ok in the actual command. I'd like to run this as a batch file with a scheduled task to regularly check for new books, since I don't always add them from the main computer. This would save me from having to manually use the GUI to update the library each time. Is it confirmed that the CLI cannot auto add new books found during a scan? |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Dec 2015
Device: Kindle Fire
|
Should the syntax be:
Code:
calibredb check_library --library-path "D:\My Media\eBooks" > "C:\temp\calibreresults.txt" Code:
calibredb check_library --library-path="D:\My Media\eBooks" > "C:\temp\calibreresults.txt" |
![]() |
![]() |
![]() |
#7 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,351
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
If you want to auto add books use Preferences->Adding Books->Auto add from folder
If you wan to add books via script, use calibredb add *Do not* ever copy files intot he calibre library folder and try to use check/restore library to add them. |
![]() |
![]() |
![]() |
#8 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Dec 2015
Device: Kindle Fire
|
How often is the folder checked to Auto Add new items?
Does "calibredb add" simply scan for new items and add them? Thanks. |
![]() |
![]() |
![]() |
#9 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Code:
calibredb add --recurse D:\\ebooks-to-add-to-calibre\\ The auto-add folder is periodically checked in the background while the GUI is running. Last edited by eschwartz; 12-04-2015 at 04:07 PM. |
![]() |
![]() |
![]() |
#10 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Dec 2015
Device: Kindle Fire
|
I tried using
Code:
calibredb add -recurse "D:\My Media\eBooks" What am I missing here? I also just updated to the current 64-bit version, so all files should be up to date. Are there supposed to be 2 backslashes after the D:\ drive location? Do you need a backslash at the end of the path? |
![]() |
![]() |
![]() |
#11 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
I fixed a typo above.
The --recurse switch needs two "--". Paths on Windows are weird, ![]() ![]() A doubled backslash escapes the second one so it is ensured treatment as a literal backslash -- the path separator. |
![]() |
![]() |
![]() |
#12 | ||
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
Quote:
I don't know (or care) if calibre 'polls' the folder or uses the equivalent of inotify - but I suspect it maybe the latter. The downside of using Auto-add is if you have the wrong library open when the file arrives in the auto-add folder then the file will be added to the wrong library. A 'nice-to-have' refinement would be to have an option to give each library a dedicated auto-add folder (probably with a fixed name) - eg "MyLibrary/$$Autoadd". BR |
||
![]() |
![]() |
![]() |
#13 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 260
Karma: 139980
Join Date: Mar 2014
Device: Android
|
hmmm..umm...Kovid...
Quote:
See my thread here related to that.... My reply has nothing to do with this thread, but it addresses a question I have that relates to what you said here. Last edited by jecilop; 12-04-2015 at 05:24 PM. Reason: typ |
|
![]() |
![]() |
![]() |
#14 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
@jecilop,
the difference is if you are willing to lift calibre's skirt and meddle with the structure, you can *probably* trick calibre into linking a new format. But this thread, and Kovid's comment here, relates to trying to use check/restore library to add a new book record. Which is much more hopeless ![]() |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Spell Check not working at all | shadowThief | Editor | 6 | 06-12-2015 09:04 AM |
Saving metadata and covers with the cli interface not working properly | Kode | Calibre | 9 | 11-09-2014 06:29 PM |
Conversion not working in calbre GUI -- CLI OK | mfmadden | Conversion | 8 | 02-22-2014 04:14 PM |
Classic Check for new B&N content not working | graddy | Barnes & Noble NOOK | 1 | 07-18-2010 09:40 PM |