Skip to content

Commit eec5e9c

Browse files
Last Sync: 2026-02-24 04:50 (Mobile)
1 parent 6a41789 commit eec5e9c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

MovieboxProvider/src/main/kotlin/com/moviebox/MovieboxProvider.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class MovieboxProvider : MainAPI() {
6262
val tvType = if (subject?.subjectType == 2) TvType.TvSeries else TvType.Movie
6363
val description = subject?.description
6464
val trailer = subject?.trailer?.videoAddress?.url
65-
val ratingScore = subject?.imdbRatingValue?.toDoubleOrNull()
65+
val mediaScore = subject?.imdbRatingValue?.toDoubleOrNull()?.let { Score(it, 10.0) }
6666

6767
val actors = doc?.stars?.mapNotNull { cast ->
6868
ActorData(Actor(cast.name ?: return@mapNotNull null, cast.avatarUrl), roleString = cast.character)
@@ -83,7 +83,7 @@ class MovieboxProvider : MainAPI() {
8383
this.year = year
8484
this.plot = description
8585
this.tags = tags
86-
this.score = ratingScore
86+
this.score = mediaScore
8787
this.actors = actors
8888
this.recommendations = recommendations
8989
addTrailer(trailer, addRaw = true)
@@ -94,7 +94,7 @@ class MovieboxProvider : MainAPI() {
9494
this.year = year
9595
this.plot = description
9696
this.tags = tags
97-
this.score = ratingScore
97+
this.score = mediaScore
9898
this.actors = actors
9999
this.recommendations = recommendations
100100
addTrailer(trailer, addRaw = true)

0 commit comments

Comments
 (0)