mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
[UX] Display the author in OPDS catalogs. (#4278)
This commit is contained in:
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
|
||||
|
||||
Reference in New Issue
Block a user