diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/track/kitsu/dto/KitsuListSearch.kt b/app/src/main/java/eu/kanade/tachiyomi/data/track/kitsu/dto/KitsuListSearch.kt index 0a505d627..b6b2fbdf0 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/track/kitsu/dto/KitsuListSearch.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/track/kitsu/dto/KitsuListSearch.kt @@ -40,7 +40,7 @@ data class KitsuListSearchResult( "planned" -> Kitsu.PLAN_TO_READ else -> throw Exception("Unknown status") } - score = userDataAttrs.ratingTwenty?.let { it.toInt() / 2.0 } ?: 0.0 + score = userDataAttrs.ratingTwenty?.let { it / 2.0 } ?: 0.0 last_chapter_read = userDataAttrs.progress.toDouble() } } @@ -57,7 +57,7 @@ data class KitsuListSearchItemDataAttributes( val status: String, val startedAt: String?, val finishedAt: String?, - val ratingTwenty: String?, + val ratingTwenty: Int?, val progress: Int, )