From 63e0605080acc26be0fca95fb79e5c69dc414412 Mon Sep 17 00:00:00 2001 From: Andrey Golovizin Date: Sun, 18 Oct 2015 20:07:48 +0200 Subject: [PATCH] OPDS: fix entry titles on ManyBooks --- frontend/ui/widget/opdsbrowser.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/ui/widget/opdsbrowser.lua b/frontend/ui/widget/opdsbrowser.lua index 806826174..892af4889 100644 --- a/frontend/ui/widget/opdsbrowser.lua +++ b/frontend/ui/widget/opdsbrowser.lua @@ -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