Merge pull request #2364 from robert00s/master

OPDS - fix opds catalog for Wolne Lektury
This commit is contained in:
Frans de Jonge
2016-11-21 09:44:57 +01:00
committed by GitHub

View File

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