fix(data): Fixed incorrect library entry chapter count

This commit is contained in:
Ahmad Ansori Palembani 2024-08-09 07:23:53 +07:00
parent 8dc0938581
commit da5d1f4203
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6
3 changed files with 3 additions and 3 deletions

View file

@ -8,4 +8,4 @@
## Other ?? Technical stuff, what happened behind the scene ## Other ?? Technical stuff, what happened behind the scene
--> -->
## Fixes ## Fixes
- Fixed incompatibility with J2K backup file - Fixed incorrect library entry chapter count

View file

@ -47,7 +47,7 @@ android {
targetSdk = AndroidConfig.targetSdk targetSdk = AndroidConfig.targetSdk
applicationId = "eu.kanade.tachiyomi" applicationId = "eu.kanade.tachiyomi"
versionCode = 139 versionCode = 139
versionName = "1.8.4.4" versionName = "1.8.4.5"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
multiDexEnabled = true multiDexEnabled = true

View file

@ -78,7 +78,7 @@ class LibraryManga : MangaImpl() {
this.update_strategy = updateStrategy.toInt().let(updateStrategyAdapter::decode) this.update_strategy = updateStrategy.toInt().let(updateStrategyAdapter::decode)
this.read = readCount.roundToInt() this.read = readCount.roundToInt()
this.unread = maxOf((total - readCount).roundToInt(), 0) this.unread = maxOf((total - readCount).roundToInt(), 0)
this.totalChapters = readCount.roundToInt() this.totalChapters = total.toInt()
this.bookmarkCount = bookmarkCount.roundToInt() this.bookmarkCount = bookmarkCount.roundToInt()
} }
} }