From 865fcf8dc1fe2a5129b9899574f73b5d658141e7 Mon Sep 17 00:00:00 2001 From: Blatzar <46196380+Blatzar@users.noreply.github.com> Date: Fri, 7 Oct 2022 18:57:22 +0200 Subject: [PATCH] Add recommendations to SuperStream --- SuperStream/build.gradle.kts | 4 ++-- SuperStream/src/main/kotlin/com/lagradost/SuperStream.kt | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/SuperStream/build.gradle.kts b/SuperStream/build.gradle.kts index 429798e..d388487 100644 --- a/SuperStream/build.gradle.kts +++ b/SuperStream/build.gradle.kts @@ -1,5 +1,5 @@ // use an integer for version numbers -version = 3 +version = 4 cloudstream { @@ -7,7 +7,7 @@ cloudstream { // All of these properties are optional, you can safely remove them // description = "Lorem Ipsum" - // authors = listOf("Cloudburst") + authors = listOf("Blatzar") /** * Status int as the following: diff --git a/SuperStream/src/main/kotlin/com/lagradost/SuperStream.kt b/SuperStream/src/main/kotlin/com/lagradost/SuperStream.kt index 25295f5..3885358 100644 --- a/SuperStream/src/main/kotlin/com/lagradost/SuperStream.kt +++ b/SuperStream/src/main/kotlin/com/lagradost/SuperStream.kt @@ -257,6 +257,7 @@ class SuperStream : MainAPI() { private data class Data( @JsonProperty("id") val id: Int? = null, + @JsonProperty("mid") val mid: Int? = null, @JsonProperty("box_type") val boxType: Int? = null, @JsonProperty("title") val title: String? = null, @JsonProperty("poster_org") val posterOrg: String? = null, @@ -269,7 +270,7 @@ class SuperStream : MainAPI() { fun toSearchResponse(api: MainAPI): MovieSearchResponse? { return api.newMovieSearchResponse( this.title ?: "", - LoadData(this.id ?: return null, this.boxType).toJson(), + LoadData(this.id ?: this.mid ?: return null, this.boxType ?: ResponseTypes.Movies.value).toJson(), ResponseTypes.getResponseType(this.boxType).toTvType(), false ) {