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,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 )
You can’t perform that action at this time.
0 commit comments