branch: externals/calibre
commit e5d853eb32de3d3cb8f294685a865e704588fde1
Author: Kjartan Óli Ágústsson <[email protected]>
Commit: Kjartan Óli Ágústsson <[email protected]>
Use the -r flag when adding books
* calibre-library.el (calibre-library-add-books): Pass -r to
calibre-library--execute to make sure directories are processed
correctly.
---
calibre-library.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/calibre-library.el b/calibre-library.el
index b24919870d..59a0fb09b0 100644
--- a/calibre-library.el
+++ b/calibre-library.el
@@ -35,7 +35,7 @@
(defun calibre-library-add-books (files)
"Add FILES to the Calibre library."
- (calibre-library--execute `("add" ,@(mapcar #'expand-file-name files))))
+ (calibre-library--execute `("add" "-r" ,@(mapcar #'expand-file-name files))))
;;;###autoload
(defun calibre-dired-add ()