File tree Expand file tree Collapse file tree
MovieboxProvider/src/main/kotlin/com/moviebox Expand file tree Collapse file tree Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments