Use Bayesian Rating for Manga info (#619)
Refer: https://github.com/CarlosEsco/Neko/pull/1001
This commit is contained in:
parent
ec0f572a82
commit
e8edaee157
@ -15,4 +15,5 @@ data class StatisticsMangaDto(
|
|||||||
@Serializable
|
@Serializable
|
||||||
data class StatisticsMangaRatingDto(
|
data class StatisticsMangaRatingDto(
|
||||||
val average: Double?,
|
val average: Double?,
|
||||||
|
val bayesian: Double?,
|
||||||
)
|
)
|
||||||
|
@ -102,7 +102,7 @@ class ApiMangaParser(
|
|||||||
lastChapterNumber = lastChapter?.floor()
|
lastChapterNumber = lastChapter?.floor()
|
||||||
|
|
||||||
statistics?.rating?.let {
|
statistics?.rating?.let {
|
||||||
rating = it.average?.toFloat()
|
rating = it.bayesian?.toFloat()
|
||||||
// manga.users = it.users
|
// manga.users = it.users
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user