OPDS - fix opds catalog for Wolne Lektury

pull/2364/head
robert00s 8 years ago
parent 1a6ae058cc
commit 2cfce6f369

@ -376,10 +376,12 @@ function OPDSBrowser:genItemTableFromCatalog(catalog, item_url)
local hrefs = {} local hrefs = {}
if feed.link then if feed.link then
for _, link in ipairs(feed.link) do for _, link in ipairs(feed.link) do
if link.type:find(self.catalog_type) or if link.type ~= nil then
link.type:find(self.search_type) then if link.type:find(self.catalog_type) or
if link.rel and link.href then link.type:find(self.search_type) then
hrefs[link.rel] = build_href(link.href) if link.rel and link.href then
hrefs[link.rel] = build_href(link.href)
end
end end
end end
end end

Loading…
Cancel
Save