Add automatic epub to kepub conversion using kepubify

This commit is contained in:
Vincent Kriek
2019-08-18 21:44:19 +02:00
parent ff41775dbb
commit 38a255e069
5 changed files with 40 additions and 4 deletions
+5 -1
View File
@@ -1010,7 +1010,11 @@ def serve_book(book_id, book_format):
@login_required_if_no_ano
@download_required
def download_link(book_id, book_format, anyname):
return get_download_link(book_id, book_format)
if (config.config_automatic_kepub and
"Kobo" in request.headers.get('User-Agent')):
client = "kobo"
return get_download_link(book_id, book_format, client)
@web.route('/send/<int:book_id>/<book_format>/<int:convert>')