From e2325f7ba4f2307cfe88a32ebd618745f6906dd5 Mon Sep 17 00:00:00 2001 From: Jennifer Thakar Date: Sun, 22 Nov 2020 15:06:37 -0800 Subject: [PATCH] Forward Overdrive requests to Kobo Store When loading books from OverDrive, Kobo readers make requests to `/v1/products/books/external/`. This adds a route to forward these requests to the Kobo Store, so that OverDrive still works when using Calibre-Web's Kobo sync server. --- cps/kobo.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cps/kobo.py b/cps/kobo.py index 2acd925d..8d1168e0 100644 --- a/cps/kobo.py +++ b/cps/kobo.py @@ -860,6 +860,7 @@ def HandleUserRequest(dummy=None): @kobo.route("/v1/products//recommendations", methods=["GET", "POST"]) @kobo.route("/v1/products//nextread", methods=["GET", "POST"]) @kobo.route("/v1/products//reviews", methods=["GET", "POST"]) +@kobo.route("/v1/products/books/external/", methods=["GET", "POST"]) @kobo.route("/v1/products/books/series/", methods=["GET", "POST"]) @kobo.route("/v1/products/books/", methods=["GET", "POST"]) @kobo.route("/v1/products/dailydeal", methods=["GET", "POST"])