From e1a52b588158f5f64a26e30cd8379eb590e5ffe3 Mon Sep 17 00:00:00 2001 From: hius07 <62179190+hius07@users.noreply.github.com> Date: Mon, 31 Oct 2022 09:07:37 -0400 Subject: [PATCH] OPDSbrowser: fix uninitialized calibre (#9718) --- plugins/opds.koplugin/opdsbrowser.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/opds.koplugin/opdsbrowser.lua b/plugins/opds.koplugin/opdsbrowser.lua index c832e44f5..5126eb37f 100644 --- a/plugins/opds.koplugin/opdsbrowser.lua +++ b/plugins/opds.koplugin/opdsbrowser.lua @@ -97,7 +97,8 @@ function OPDSBrowser:genItemTableFromRoot() local item_table = { { -- calibre is the first and non-deletable item text = self.calibre_name, - url = string.format("http://%s:%d/opds", self.calibre_opds.host, self.calibre_opds.port), + url = self.calibre_opds.host and self.calibre_opds.port and + string.format("http://%s:%d/opds", self.calibre_opds.host, self.calibre_opds.port), username = self.calibre_opds.username, password = self.calibre_opds.password, searchable = false,