]> git.phdru.name Git - m_librarian.git/blobdiff - scripts/ml-search.py
Allow to set download format
[m_librarian.git] / scripts / ml-search.py
index 0d995e505f1bd359a7b3b134e5861aa6c86fbcca..d19c5b4f6408b8ce4d629fe7913e2fd816cf63a2 100755 (executable)
@@ -144,8 +144,7 @@ def _search_books(case_sensitive, search_type, args):
                              "(found %d).\n" % count)
             sys.exit(1)
         book = books[0]
-        download(book.archive, '%s.%s' % (book.file, book.extension.name),
-                 book.date, args.path)
+        download(book, args.path)
         return
     count = 0
     for book in books: