chenyanming / calibredb.el

Emacs calibre client - An Ebook Management Solution in Emacs.
GNU General Public License v3.0
318 stars 16 forks source link

adding to specific library, did the command options change? #77

Open discipolo opened 8 months ago

discipolo commented 8 months ago

calibre version 7.2

diff --git a/calibredb-utils.el b/calibredb-utils.el
index 50a6c3b..95b932d 100644
--- a/calibredb-utils.el
+++ b/calibredb-utils.el
@@ -347,9 +347,9 @@ types are added.
 Optional argument OPTION is additional options."
   (interactive)
   (calibredb-command :command "add"
-                     :input (format "--add %s" (concat (file-name-as-directory (calibredb-complete-directory-quote "Add a directory to Calibre")) "*"))
+                     :input (format "%s" (concat (file-name-as-directory (calibredb-complete-directory-quote "Add a directory to Calibre")) "*"))
                      :option (or option "")
-                     :library (format "--library-path %s" (calibredb-root-dir-quote)))
+                     :library (format "--with-library %s" (calibredb-root-dir-quote)))
   (if (equal major-mode 'calibredb-search-mode)
       (calibredb-search-refresh-or-resume)))