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.
This commit is contained in:
parent
9804a98af8
commit
dc7aaae235
|
@ -77,9 +77,6 @@ def redirect_or_proxy_request():
|
||||||
if config.config_kobo_proxy:
|
if config.config_kobo_proxy:
|
||||||
if request.method == "GET":
|
if request.method == "GET":
|
||||||
return redirect(get_store_url_for_current_request(), 307)
|
return redirect(get_store_url_for_current_request(), 307)
|
||||||
if request.method == "DELETE":
|
|
||||||
log.info('Delete Book')
|
|
||||||
return make_response(jsonify({}))
|
|
||||||
else:
|
else:
|
||||||
# The Kobo device turns other request types into GET requests on redirects, so we instead proxy to the Kobo store ourselves.
|
# 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)
|
outgoing_headers = Headers(request.headers)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user