[UX] Display the author in OPDS catalogs. (#4278)

This commit is contained in:
Yann Muller
2018-10-18 19:12:30 +01:00
committed by Frans de Jonge
parent 588de66bcd
commit 64d00b2969

View File

@@ -404,11 +404,12 @@ function OPDSBrowser:genItemTableFromCatalog(catalog, item_url, username, passwo
if title == "Unknown" then
logger.info("Cannot handle title", entry.title)
end
item.text = title
local author = "Unknown Author"
if type(entry.author) == "table" and entry.author.name then
author = entry.author.name
item.text = title .. "\n" .. author
end
item.text = title
item.title = title
item.author = author
item.id = entry.id