Quote:
Originally Posted by hius07
|
This patch for
frontend/ui/widget/opdsbrowser.lua should fix it (URL with rel="http://opds-spec.org/acquisition/open-access" will be recognized as an acquisition URL).
Code:
--- opdsbrowser.lua 2014-10-02 13:38:25.000000000 +0000
+++ opdsbrowser.patched.lua 2014-10-02 13:39:35.000000000 +0000
@@ -40,7 +40,7 @@
catalog_type = "application/atom%+xml",
search_type = "application/opensearchdescription%+xml",
- acquisition_rel = "http://opds-spec.org/acquisition",
+ acquisition_rel = "^http://opds%-spec%.org/acquisition",
thumbnail_rel = "http://opds-spec.org/image/thumbnail",
formats = {
@@ -331,7 +331,7 @@
if link.type:find(self.catalog_type) then
item.url = build_href(link.href)
end
- if link.rel == self.acquisition_rel then
+ if link.rel and link.rel:match(self.acquisition_rel) then
table.insert(item.acquisitions, {
type = link.type,
href = build_href(link.href),
BTW, these sites are using two link nodes with rel="http://opds-spec.org/thumbnail" and rel="http://opds-spec.org/image" for the same cover image and these rels aren't recognized by KOReader (though it's not fatal, now images aren't displayed even for recognized rels).