View Single Post
Old 08-01-2019, 10:38 AM   #3
EldonMcGuinness
Junior Member
EldonMcGuinness began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jul 2019
Device: Kindle
I'm actually on the server itself via SSH, the library variable is provided via the command line when I run the script, which is the actual path to the library directory itself, not the url for it. Is this not valid as it seems to work for updating the data in the DB.

The version of Calibre on the server is 3.46.0, I don't run Calibre locally as it would be redundant.

As an example to what I'm passing to the bash script, I've included the commands as they would be run.

Code:
updateBook /mnt/data/books 214 "Under Same Sky" "Cynthia DeFelice"
NOTE: `updateBook` is the name of the bash script that I included in the original post. The above command would run the following commands with the passed arguments being filled as outlined below.
Code:
fetch-ebook-metadata -t "Under Same Sky" -a "Cynthia DeFelice" -o | tee temp.opf
calibredb --with-library "/mnt/data/books" set_metadata 214 temp.opf
calibredb --with-library "/mnt/data/books" embed_metadata 214
As an update, I've found that restarting the calibre service seems to resolve the issue, so maybe it is some kind of caching on the server side?
EldonMcGuinness is offline   Reply With Quote