Wow that's fast thx!
One more question.
Restarting the server doesn't seem to pick up metadata from newer opf files (those I created with my friend >
So I also updated the db after creating it with calibredb set-metadata id metadata.opf.
That doesn't update info on server either it seems after a restart, but it says it notified calibre of the changes.
What is the fasted way to import new and unknown books from a folder, grab metadata and a cover for it and add this new info to the db or book so the server can display it, with calibrecli-commands only?
(running everything with --with-library option because it's on a headless server.)
ps:
My python skills are to little to be taken seriously, so I can't submit a patch, but I can workaround with a cronjob, thanks.
edit:
Wait a minute. I am grabbing covers, then changing metadata, reimporting, this changes paths and also overwrites existing covers... Need two runs, one for meta, one for covers