diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/track/komga/KomgaApi.kt b/app/src/main/java/eu/kanade/tachiyomi/data/track/komga/KomgaApi.kt index d24234599..19c8de343 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/track/komga/KomgaApi.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/track/komga/KomgaApi.kt @@ -47,7 +47,7 @@ class KomgaApi(private val client: OkHttpClient) { track.apply { cover_url = "$url/thumbnail" tracking_url = url - total_chapters = progress.booksCount + total_chapters = progress.maxNumberSort.toInt() status = when (progress.booksCount) { progress.booksUnreadCount -> Komga.UNREAD progress.booksReadCount -> Komga.COMPLETED diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/track/komga/KomgaModels.kt b/app/src/main/java/eu/kanade/tachiyomi/data/track/komga/KomgaModels.kt index 2618adf8b..85b1e89b8 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/track/komga/KomgaModels.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/track/komga/KomgaModels.kt @@ -91,7 +91,8 @@ data class ReadProgressDto( booksReadCount, booksUnreadCount, booksInProgressCount, - lastReadContinuousIndex.toFloat() + lastReadContinuousIndex.toFloat(), + booksCount.toFloat(), ) } @@ -102,4 +103,5 @@ data class ReadProgressV2Dto( val booksUnreadCount: Int, val booksInProgressCount: Int, val lastReadContinuousNumberSort: Float, + val maxNumberSort: Float, )