added rec on superstream

This commit is contained in:
Osten 2022-09-01 18:09:04 +02:00 committed by GitHub
parent a8d3d25fc2
commit 842a73f6d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -307,6 +307,7 @@ class SuperStream : MainAPI() {
@JsonProperty("trailer_url") val trailerUrl: String? = null,
@JsonProperty("imdb_link") val imdbLink: String? = null,
@JsonProperty("box_type") val boxType: Int? = null,
@JsonProperty("recommend") val recommend: List<Data> = listOf(),
)
private data class MovieDataProp(
@ -469,6 +470,7 @@ class SuperStream : MainAPI() {
null
),
) {
this.recommendations = data.recommend.mapNotNull { it.toSearchResponse() }
this.posterUrl = data.posterOrg ?: data.poster
this.year = data.year
this.plot = data.description