View Single Post
Old 09-29-2023, 07:48 PM   #9
thestraycat
Member
thestraycat began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Aug 2023
Device: Kindle
@kovidgoyal

When using a bash script to add books there seems no argument with caliberedb to delete book after successful import... Also there dosnt seem a way of getting the errorcode of the 'calibredb add' command... for example if i try and add a duplicate book to my library via 'calibre add' it will complain that i rightly need to use the 'duplicates' or 'automerge' options but the command still finishes with an errorcode 0 (successful)

Obviously, if i'm to remove the source book from my watchfolders in my script i need to know whether the book actually successfully added or not prior to deleting it... any ideas?
thestraycat is offline   Reply With Quote