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 09-29-2023, 07:04 PM   #1
thestraycat
Member
thestraycat began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Aug 2023
Device: Kindle
Anonymous content-server and add books via CLI

Hi guys - Hope everyones good...

TL;DR: I want to keep my content-server with no-auth and want to be able to run scripts to add books via the CLI, but i need to have auth enabled to use the CLI to make changes to the library. How do i fix this?

The content-server is served locally with no auth which i've done on purpose as it's main use it to get books onto a kindle via the experimental web-browser and so not having to put in a ridiculously long password on a kindle is the goal.

However, i want a script to monitor multiple watch folders and upload and add books automatically, however the 'calibredb add' command always throws 'forbidden' unless i have auth enabled.

Is it possible to keep my no-auth content server and simply use an auth account to make changes to the library via the CLI. (eg. when adding a book etc.) And if not, why not?
thestraycat is offline   Reply With Quote
Old 09-29-2023, 10:01 PM   #2
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Posts: 1,611
Karma: 7891011
Join Date: Sep 2020
Device: none
hi, I never used this option when running the content server, but I'd guess you need --trusted-ips:

https://manual.calibre-ebook.com/gen...er-trusted-ips

It can be found also in Calibre GUI -> Sharing over the net -> Advanced tab
Comfy.n is offline   Reply With Quote
Advert
Old 10-04-2023, 10:58 AM   #3
thestraycat
Member
thestraycat began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Aug 2023
Device: Kindle
In the end there were a few options hiding in there that i managed to use! Thanks!
thestraycat is offline   Reply With Quote
Reply

Tags
calibredb calibre-server, cli, script-error


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Best device for accessing Calibre as a content server only / Best way to add content yelt Calibre 1 10-01-2020 09:53 PM
Content server: Add a button to delete all locally cached books stumped Calibre 11 03-07-2020 02:08 AM
calibredb cannot add with content server running apiontek Calibre 10 08-04-2017 04:50 AM
Add Content Server as a library ? akmeltem Library Management 1 06-25-2017 08:46 AM


All times are GMT -4. The time now is 03:56 PM.


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