mirror of
https://github.com/gotson/komga.git
synced 2025-12-22 08:23:04 +01:00
fix(opds): display book metadata title instead of name
This commit is contained in:
parent
60edbe1090
commit
d06da572b6
1 changed files with 2 additions and 2 deletions
|
|
@ -251,10 +251,10 @@ class OpdsController(
|
|||
|
||||
private fun Book.toOpdsEntry() =
|
||||
OpdsEntryAcquisition(
|
||||
title = name,
|
||||
title = metadata.title,
|
||||
updated = lastModifiedDate?.atZone(ZoneId.systemDefault()) ?: ZonedDateTime.now(),
|
||||
id = id.toString(),
|
||||
content = "$name (${fileExtension().toUpperCase()}) (${fileSizeHumanReadable()})",
|
||||
content = "${metadata.title} (${fileExtension().toUpperCase()}) (${fileSizeHumanReadable()})",
|
||||
links = listOf(
|
||||
OpdsLinkImageThumbnail("image/jpeg", "${ROUTE_BASE}books/$id/thumbnail"),
|
||||
OpdsLinkImage(media.pages[0].mediaType, "${ROUTE_BASE}books/$id/pages/1"),
|
||||
|
|
|
|||
Loading…
Reference in a new issue