View Single Post
Old 03-14-2022, 06:58 PM   #1
Nitrousoxide
Enthusiast
Nitrousoxide began at the beginning.
 
Posts: 49
Karma: 10
Join Date: Nov 2009
Device: None
Updating GUI and OPDS after cli adding books

Does anyone know how to get Calibre to update the opds and gui databases when you add a book via the command line?
Basically, I have another app generating epubs and dropping them in a directory. I then run a cron job to calibredb add the files in that directory. This works fine and they appear in the DB. But the GUI and OPDS server don't pick them up until I manually have it check through the GUI
I tried running calibredb check_library but that doesn't seem to cause the GUI or OPDS to pick up the database change.

These are the relevant parts of the bash script that I'm running

calibredb add -acIilsStt directory/path/to/books/for/input
calibredb check_library
Nitrousoxide is offline   Reply With Quote