Skip to content

Commit 6a41789

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

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ 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 rating = subject?.imdbRatingValue.toRatingInt()
65+
val ratingScore = subject?.imdbRatingValue?.toDoubleOrNull()
66+
6667
val actors = doc?.stars?.mapNotNull { cast ->
6768
ActorData(Actor(cast.name ?: return@mapNotNull null, cast.avatarUrl), roleString = cast.character)
6869
}?.distinctBy { it.actor }
@@ -82,7 +83,7 @@ class MovieboxProvider : MainAPI() {
8283
this.year = year
8384
this.plot = description
8485
this.tags = tags
85-
this.rating = rating
86+
this.score = ratingScore
8687
this.actors = actors
8788
this.recommendations = recommendations
8889
addTrailer(trailer, addRaw = true)
@@ -93,7 +94,7 @@ class MovieboxProvider : MainAPI() {
9394
this.year = year
9495
this.plot = description
9596
this.tags = tags
96-
this.rating = rating
97+
this.score = ratingScore
9798
this.actors = actors
9899
this.recommendations = recommendations
99100
addTrailer(trailer, addRaw = true)

0 commit comments

Comments
 (0)