06-17-2019, 10:35 AM | #1 |
Enthusiast
Posts: 26
Karma: 10
Join Date: Jun 2019
Device: Kindle
|
How do I get the content server to import new titles?
Soooooo I realise this is probably a daft question, but I'm struggling to work out to get Calibre content server to import new content.
I have the server installed on a remote headless box and everything is working perfectly. I'm able to access and download books on my jailbroken Kindle PW4 using KOReader. The only bit I can't work out is how to set calibre to scan a book directory for new content. I can't find any relevant documentation. Sorry, I know I'm probably being an idiot and missing something obvious, but if someone could point me in the right direction I'd be massively grateful. Cheers |
06-17-2019, 10:56 AM | #2 |
Enthusiast
Posts: 26
Karma: 10
Join Date: Jun 2019
Device: Kindle
|
Just to add, I think it's the calibredb add command I should be using, but I'm not quite sure how to implement it
|
Advert | |
|
06-17-2019, 11:40 AM | #3 | |
Wizard
Posts: 2,082
Karma: 8796704
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
|
Quote:
bernie |
|
06-17-2019, 12:08 PM | #4 | |
Enthusiast
Posts: 26
Karma: 10
Join Date: Jun 2019
Device: Kindle
|
Quote:
I did find a guide online that helped me add something to crontab, however I'm not quite sure I've set it up properly as it doesn't seem to have worked so far */10 * * * * xvfb-run calibredb add /home/craftyclown/Calibre/New/Sonya -r --with-library /home/craftyclown/Calibre/Library/Sonya && rm /home/craftyclown/Calibre/Library/Sonya To be fair the guide was 5 years out of date |
|
06-17-2019, 01:15 PM | #5 |
Well trained by Cats
Posts: 29,806
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Does the Auto-add folder work on a headless?
|
Advert | |
|
06-17-2019, 01:24 PM | #6 |
Enthusiast
Posts: 26
Karma: 10
Join Date: Jun 2019
Device: Kindle
|
|
06-17-2019, 01:30 PM | #7 | ||
Enthusiast
Posts: 26
Karma: 10
Join Date: Jun 2019
Device: Kindle
|
So I think I'm making baby steps forwards, but I'm still not quite there.
I've now added --enable-local-write to my Calibre-server.service file and I've also removed xvfb-run from my crontab So what I have right now is: Quote:
Quote:
|
||
06-17-2019, 02:47 PM | #8 |
Enthusiast
Posts: 26
Karma: 10
Join Date: Jun 2019
Device: Kindle
|
and we're almost there
So it appears I need to use the full address of the content server for --with-library (not exactly sure why as the process is occurring locally) */10 * * * * calibredb add /home/craftyclown/Calibre/New/Sonya -r --with-library http://richflix1.ddns.net:8882/#Sonya Not quite sure how to delete the books from the download folder after they've been ingested into the library though. I still feel like I'm missing a trick here. Suggestions? |
06-17-2019, 04:20 PM | #9 |
Well trained by Cats
Posts: 29,806
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
FTP?
You drop the new book into the auto-add folder. Calibre polls for content and moves (really an Add the Delete) to the Library. Note: My experience is desktop Calibre, but if yoy are running calibre (as opposed to just the calibre-server.exe) this should work. All you need to do is set up a dedicated (empty) folder and configure Preferences:adding books: Automatic adding(a tab) (I just read the nex msg |
06-17-2019, 11:15 PM | #10 |
creator of calibre
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Write a two line script that calls calibredb and then deletes the files and put that in your crontab.
Altough I dont quite understand why you want to do this whole rigamarole? Why not just add books directly through the server's web interface? |
06-18-2019, 03:38 PM | #11 | |
Enthusiast
Posts: 26
Karma: 10
Join Date: Jun 2019
Device: Kindle
|
Quote:
|
|
06-18-2019, 03:53 PM | #12 | |
Enthusiast
Posts: 26
Karma: 10
Join Date: Jun 2019
Device: Kindle
|
Quote:
Besides, I want to try and make this as automated as possible, the target being a system of synchronised folders on any device where I can drop books for any of the various libraries I have (multiple family members) There is one thing I'm still confused about. Is there a way to get the --with-library command on calibredb add to access local drives? It only seems to work for me using the full server address. |
|
06-18-2019, 09:08 PM | #13 |
creator of calibre
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You dont need to use the webUI. Setup user accounts and give one account write access, then you can use calibredb to add books to the server from anywhere.
Am not sure what you mean by get --with-library to access local drives? If you want to operate ona library that is being served via content server, the only way to do it is via the server URL. calibredb and calibre-server cannot both run on the same library at the same time. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
calibredb does not work with content server running (content server is using --enable | Irvin | Server | 3 | 01-08-2019 02:47 AM |
Content-server: Auto-import on Linux? | maddhin | Library Management | 6 | 08-08-2017 09:34 AM |
Content server on ubuntu 12.04 headless server ImageMagick: libltdl.so.7 | Cool Javelin | Calibre | 5 | 04-08-2015 02:20 AM |
Calibre Content Server and Windows Home Server 2011 | HughMcC | Calibre | 8 | 10-01-2014 07:26 AM |
500 Internal Server Error accessing content server Calibre 0.8.8 | DaddyO57 | Calibre | 1 | 07-20-2012 06:08 PM |