From dc7aaae235f0bbc3d3552ffed8e9158c685661e4 Mon Sep 17 00:00:00 2001 From: Michael Shavit Date: Sun, 26 Jan 2020 16:01:27 -0500 Subject: [PATCH] Now that CalibreWeb delete requests are respected, we can forward them to the KoboStore for books that aren't in Calibre. Note: There's still an edge case where a book is removed from Calibre without first being archived, in which case the delete call will fail. --- cps/kobo.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/cps/kobo.py b/cps/kobo.py index d06b924d..ba1e171e 100644 --- a/cps/kobo.py +++ b/cps/kobo.py @@ -77,9 +77,6 @@ def redirect_or_proxy_request(): if config.config_kobo_proxy: if request.method == "GET": return redirect(get_store_url_for_current_request(), 307) - if request.method == "DELETE": - log.info('Delete Book') - return make_response(jsonify({})) else: # The Kobo device turns other request types into GET requests on redirects, so we instead proxy to the Kobo store ourselves. outgoing_headers = Headers(request.headers)