From 045419e880f64ea8d11d0a3bf3fcdb7641862b09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E6=AA=8E?= Date: Thu, 9 Mar 2017 12:32:10 +0800 Subject: [PATCH] Fix #146 For WebUI only OPDS remains previous behaviour --- cps/templates/detail.html | 2 +- cps/web.py | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/cps/templates/detail.html b/cps/templates/detail.html index 9639e954..ce7e179a 100644 --- a/cps/templates/detail.html +++ b/cps/templates/detail.html @@ -126,7 +126,7 @@ diff --git a/cps/web.py b/cps/web.py index 07d7fb63..eed95f11 100755 --- a/cps/web.py +++ b/cps/web.py @@ -1309,7 +1309,6 @@ def read_book(book_id, format): flash(_(u"Error opening eBook. File does not exist or file is not accessible:"), category="error") return redirect(url_for("index")) - @app.route("/download//") @login_required_if_no_ano @download_required @@ -1336,6 +1335,11 @@ def get_download_link(book_id, format): else: abort(404) +@app.route("/download///") +@login_required_if_no_ano +@download_required +def get_download_link_ext(book_id, format, anyname): + return get_download_link(book_id, format) @app.route('/register', methods=['GET', 'POST']) def register():