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

pull/4283/head
Yann Muller 6 years ago committed by Frans de Jonge
parent 588de66bcd
commit 64d00b2969

@ -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

Loading…
Cancel
Save