OPDSbrowser: fix uninitialized calibre (#9718)

This commit is contained in:
hius07
2022-10-31 09:07:37 -04:00
committed by GitHub
parent f58d1c0449
commit e1a52b5881

View File

@@ -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,