Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 12-05-2014, 12:06 AM   #16
Hiryu
Member
Hiryu began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Dec 2014
Device: iOS
there's definitely a file in there. with the wildcard *, it gives me that error

once I remove the wildcard from the path, and re-run the script, it works, and the file gets added to the calibre, but then the whole book folder gets deleted.

Hiryu is offline   Reply With Quote
Old 12-05-2014, 12:19 AM   #17
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
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)
<== Me is dunce.

I forgot to remove the quotes, quotes imply literals which is why the space is part of the filename. But since the wildcard is quoted, IT is a literal asterisk!!!

Properly, these things should be escaped (with a backslash "\") instead of quoted, and the wildcard will work.

Code:
/Applications/calibre.app/Contents/console.app/Contents/MacOS/calibredb add --with-library=/Volumes/Ministack/Calibre\ Library --recurse /Users/IS/Dropbox/Reading\ Books/
rm -r /Users/IS/Dropbox/Reading\ Books/*

Last edited by eschwartz; 12-05-2014 at 12:22 AM.
eschwartz is offline   Reply With Quote
Advert
Old 12-05-2014, 02:09 AM   #18
Hiryu
Member
Hiryu began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Dec 2014
Device: iOS
you are a godsend. thank you so much. seems to be working now. really appreciate it.
Hiryu is offline   Reply With Quote
Old 12-05-2014, 02:31 AM   #19
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
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)
Quote:
Originally Posted by Hiryu View Post
you are a godsend. thank you so much. seems to be working now. really appreciate it.
Sure thing, any time.
eschwartz is offline   Reply With Quote
Old 12-05-2014, 05:03 PM   #20
Hiryu
Member
Hiryu began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Dec 2014
Device: iOS
Since I've been asking for your help already, mind if I ask you another question?

Is there any way with CLI (or some other tool that you know), where I can pre-populate/modify the creation date of the document to the added date in my dropbox folder?

Also, any way to append a tag, say "Bill" or "Research" to a custom column to the actual pdf file so that it already shows up when it gets dumped into calibre?

BTW, so far so good on the calibre-server. Thank you again!
Hiryu is offline   Reply With Quote
Advert
Old 12-05-2014, 05:13 PM   #21
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
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)
Well, you can use a few parameters to "calibredb add", for instance
Code:
-T "tag1, tag2"
longform is
Code:
--tags="tag1, tag2"
but it will apply to all books. You can of course use more complex commands like "find" to find PDFs first, then pass them to calibredb add and delete the leftover file, while adding tags, then run another round of your current command -- that will allow you to choose which tags get applied to what type of files.

The most common thing done with tags on import is to tag them as just-added or some such, so you know which ones to work on.

Last edited by eschwartz; 12-05-2014 at 06:16 PM.
eschwartz is offline   Reply With Quote
Old 12-05-2014, 06:15 PM   #22
Hiryu
Member
Hiryu began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Dec 2014
Device: iOS
ok -- food for thought. thanks!
Hiryu is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre Auto Add james14 Library Management 10 05-31-2014 02:49 AM
[How To] Running Calibre server as a news server sws Related Tools 0 04-09-2013 08:27 AM
Running Calibre on Server godlich Recipes 2 02-09-2012 12:57 PM
Add a book from another computer running calibre server gandor62 Library Management 2 06-29-2011 11:24 AM
Trouble running calibre-server ould Calibre 0 04-16-2010 02:18 PM


All times are GMT -4. The time now is 02:18 AM.


MobileRead.com is a privately owned, operated and funded community.