handle maxNumberSort from API (#5917)
This commit is contained in:
parent
f125ab01ee
commit
d45fefd6f0
@ -47,7 +47,7 @@ class KomgaApi(private val client: OkHttpClient) {
|
|||||||
track.apply {
|
track.apply {
|
||||||
cover_url = "$url/thumbnail"
|
cover_url = "$url/thumbnail"
|
||||||
tracking_url = url
|
tracking_url = url
|
||||||
total_chapters = progress.booksCount
|
total_chapters = progress.maxNumberSort.toInt()
|
||||||
status = when (progress.booksCount) {
|
status = when (progress.booksCount) {
|
||||||
progress.booksUnreadCount -> Komga.UNREAD
|
progress.booksUnreadCount -> Komga.UNREAD
|
||||||
progress.booksReadCount -> Komga.COMPLETED
|
progress.booksReadCount -> Komga.COMPLETED
|
||||||
|
@ -91,7 +91,8 @@ data class ReadProgressDto(
|
|||||||
booksReadCount,
|
booksReadCount,
|
||||||
booksUnreadCount,
|
booksUnreadCount,
|
||||||
booksInProgressCount,
|
booksInProgressCount,
|
||||||
lastReadContinuousIndex.toFloat()
|
lastReadContinuousIndex.toFloat(),
|
||||||
|
booksCount.toFloat(),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -102,4 +103,5 @@ data class ReadProgressV2Dto(
|
|||||||
val booksUnreadCount: Int,
|
val booksUnreadCount: Int,
|
||||||
val booksInProgressCount: Int,
|
val booksInProgressCount: Int,
|
||||||
val lastReadContinuousNumberSort: Float,
|
val lastReadContinuousNumberSort: Float,
|
||||||
|
val maxNumberSort: Float,
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user