mirror of
https://github.com/gotson/komga.git
synced 2025-12-31 04:44:17 +01:00
refactor: use stringbuilder
This commit is contained in:
parent
052f3d3804
commit
b9c12bc228
1 changed files with 3 additions and 5 deletions
|
|
@ -680,11 +680,9 @@ class OpdsController(
|
|||
title = "$pre${if (prependNumber) "${decimalFormat.format(metadata.numberSort)} - " else ""}${metadata.title}",
|
||||
updated = lastModified.toCurrentTimeZone().atZone(ZoneId.systemDefault()) ?: ZonedDateTime.now(),
|
||||
id = id,
|
||||
content = run {
|
||||
var content = "${FilenameUtils.getExtension(url).lowercase()} - $size"
|
||||
if (metadata.summary.isNotBlank())
|
||||
content += "\n\n${metadata.summary}"
|
||||
content
|
||||
content = buildString {
|
||||
append("${FilenameUtils.getExtension(url).lowercase()} - $size")
|
||||
if (metadata.summary.isNotBlank()) append("\n\n${metadata.summary}")
|
||||
},
|
||||
authors = metadata.authors.map { OpdsAuthor(it.name) },
|
||||
links = listOf(
|
||||
|
|
|
|||
Loading…
Reference in a new issue