From 85d2e334f6bc34f4b36e73f20a17c687c9406c73 Mon Sep 17 00:00:00 2001 From: hexated Date: Sat, 10 Dec 2022 13:14:11 +0700 Subject: [PATCH] [Loklok] fixed Quick Search --- Loklok/build.gradle.kts | 2 +- Loklok/src/main/kotlin/com/hexated/Loklok.kt | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Loklok/build.gradle.kts b/Loklok/build.gradle.kts index 22a91aa0..22b3816b 100644 --- a/Loklok/build.gradle.kts +++ b/Loklok/build.gradle.kts @@ -1,5 +1,5 @@ // use an integer for version numbers -version = 11 +version = 12 cloudstream { diff --git a/Loklok/src/main/kotlin/com/hexated/Loklok.kt b/Loklok/src/main/kotlin/com/hexated/Loklok.kt index c205341a..12fe1451 100644 --- a/Loklok/src/main/kotlin/com/hexated/Loklok.kt +++ b/Loklok/src/main/kotlin/com/hexated/Loklok.kt @@ -71,7 +71,7 @@ class Loklok : MainAPI() { return newMovieSearchResponse( title ?: name ?: return null, - UrlData(id, category).toJson(), + UrlData(id, category ?: domainType).toJson(), TvType.Movie, ) { this.posterUrl = (imageUrl ?: coverVerticalUrl)?.let { @@ -350,6 +350,7 @@ class Loklok : MainAPI() { data class Media( @JsonProperty("id") val id: Any? = null, @JsonProperty("category") val category: Int? = null, + @JsonProperty("domainType") val domainType: Int? = null, @JsonProperty("imageUrl") val imageUrl: String? = null, @JsonProperty("coverVerticalUrl") val coverVerticalUrl: String? = null, @JsonProperty("title") val title: String? = null,