Update Kobo sync

This commit is contained in:
Ozzieisaacs
2019-12-20 19:17:08 +01:00
parent f705889c23
commit f2c07d8f81
2 changed files with 14 additions and 8 deletions
+3 -1
View File
@@ -1029,11 +1029,13 @@ def serve_book(book_id, book_format, anyname):
return send_from_directory(os.path.join(config.config_calibre_dir, book.path), data.name + "." + book_format)
# @web.route("/download/<int:book_id>/<book_format>", defaults={'anyname': 'None'})
@web.route("/download/<int:book_id>/<book_format>")
@login_required_if_no_ano
@download_required
def download_link(book_id, book_format):
if book_format.lower() == "kepub":
book_format= "epub"
log.info("Book %s in format %s downloaded", str(book_id), book_format)
return get_download_link(book_id, book_format)