From 2cfce6f36978813c4f7a97e831e38cb20d8586dd Mon Sep 17 00:00:00 2001 From: robert00s Date: Mon, 21 Nov 2016 09:30:00 +0100 Subject: [PATCH] OPDS - fix opds catalog for Wolne Lektury --- frontend/ui/widget/opdsbrowser.lua | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/frontend/ui/widget/opdsbrowser.lua b/frontend/ui/widget/opdsbrowser.lua index ed4c15abd..e20cae258 100644 --- a/frontend/ui/widget/opdsbrowser.lua +++ b/frontend/ui/widget/opdsbrowser.lua @@ -376,10 +376,12 @@ function OPDSBrowser:genItemTableFromCatalog(catalog, item_url) local hrefs = {} if feed.link then for _, link in ipairs(feed.link) do - if link.type:find(self.catalog_type) or - link.type:find(self.search_type) then - if link.rel and link.href then - hrefs[link.rel] = build_href(link.href) + if link.type ~= nil then + if link.type:find(self.catalog_type) or + link.type:find(self.search_type) then + if link.rel and link.href then + hrefs[link.rel] = build_href(link.href) + end end end end