From c279055af40a13af57bf21b6c1469be688b18233 Mon Sep 17 00:00:00 2001 From: Gavin Mogan Date: Mon, 22 Mar 2021 18:08:31 -0700 Subject: [PATCH] Use the kobo auth'd version for download link when proxied -- Fixes #1908 --- cps/kobo.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cps/kobo.py b/cps/kobo.py index a9dd8865..2b956bfc 100644 --- a/cps/kobo.py +++ b/cps/kobo.py @@ -305,7 +305,8 @@ def get_download_url_for_book(book, book_format): book_format=book_format.lower() ) return url_for( - "web.download_link", + "kobo.download_book", + auth_token=kobo_auth.get_auth_token(), book_id=book.id, book_format=book_format.lower(), _external=True,