mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Merge pull request #1680 from erosennin/opds-title
OPDS: fix parsing entry titles on ManyBooks (and possible other sites)
This commit is contained in:
@@ -421,8 +421,8 @@ function OPDSBrowser:genItemTableFromCatalog(catalog, item_url)
|
||||
if type(entry.title) == "string" then
|
||||
title = entry.title
|
||||
elseif type(entry.title) == "table" then
|
||||
if entry.title.type == "text/xhtml" then
|
||||
title = entry.title.div or title
|
||||
if type(entry.title.type) == "string" and entry.title.div ~= "" then
|
||||
title = entry.title.div
|
||||
end
|
||||
end
|
||||
if title == "Unknown" then
|
||||
|
||||
Reference in New Issue
Block a user