OPDS: ignore links with unknown rel values, treat empty rel as rel="subsection".

This commit is contained in:
Andrey Golovizin
2014-11-29 11:15:41 +01:00
parent cceac98180
commit 296f63b22a

View File

@@ -332,7 +332,7 @@ function OPDSBrowser:genItemTableFromURL(item_url, base_url)
item.acquisitions = {}
if entry.link then
for i, link in ipairs(entry.link) do
if link.type:find(self.catalog_type) then
if link.type:find(self.catalog_type) and (not link.rel or link.rel == 'subsection') then
item.url = build_href(link.href)
end
if link.rel and link.rel:match(self.acquisition_rel) then