From 549f54ab07fe459f78becb42b4666576ebe406eb Mon Sep 17 00:00:00 2001 From: chrox Date: Sun, 5 Oct 2014 15:47:36 +0800 Subject: [PATCH] get rid of query filed of baseurl when building href otherwise there will be "?offset=90" query in downloading href for calibre opds server which doesn't accept the url This should fix #950. --- frontend/ui/widget/opdsbrowser.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/ui/widget/opdsbrowser.lua b/frontend/ui/widget/opdsbrowser.lua index 21a77cdbf..7ca39966d 100644 --- a/frontend/ui/widget/opdsbrowser.lua +++ b/frontend/ui/widget/opdsbrowser.lua @@ -299,6 +299,8 @@ function OPDSBrowser:genItemTableFromURL(item_url, base_url) return base_url .. "/" .. href elseif item_url then local parsed = url.parse(item_url) + -- get rid of query field of base url + parsed.query = nil -- update item url with href parts(mostly path and query) for k, v in pairs(url.parse(href) or {}) do if k == "path" then