mirror of
https://github.com/gotson/komga.git
synced 2026-04-22 06:50:51 +02:00
fix(opds): books are ordered by metadata.numberSort
This commit is contained in:
parent
f4466b45bf
commit
60edbe1090
1 changed files with 4 additions and 1 deletions
|
|
@ -211,7 +211,10 @@ class OpdsController(
|
||||||
OpdsLinkFeedNavigation(OpdsLinkRel.SELF, "${ROUTE_BASE}series/$id"),
|
OpdsLinkFeedNavigation(OpdsLinkRel.SELF, "${ROUTE_BASE}series/$id"),
|
||||||
linkStart
|
linkStart
|
||||||
),
|
),
|
||||||
entries = series.books.filter { it.media.status == Media.Status.READY }.map { it.toOpdsEntry() }
|
entries = series.books
|
||||||
|
.filter { it.media.status == Media.Status.READY }
|
||||||
|
.sortedBy { it.metadata.numberSort }
|
||||||
|
.map { it.toOpdsEntry() }
|
||||||
)
|
)
|
||||||
} ?: throw ResponseStatusException(HttpStatus.NOT_FOUND)
|
} ?: throw ResponseStatusException(HttpStatus.NOT_FOUND)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue