|
|
|
@ -1039,11 +1039,11 @@ def serve_book(book_id, book_format, anyname):
|
|
|
|
|
else:
|
|
|
|
|
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>")
|
|
|
|
|
@web.route("/download/<int:book_id>/<book_format>", defaults={'anyname': 'None'})
|
|
|
|
|
@web.route("/download/<int:book_id>/<book_format>/<anyname>")
|
|
|
|
|
@login_required_if_no_ano
|
|
|
|
|
@download_required
|
|
|
|
|
def download_link(book_id, book_format):
|
|
|
|
|
def download_link(book_id, book_format, anyname):
|
|
|
|
|
return get_download_link(book_id, book_format.lower())
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|