[Loklok] fixed Quick Search

This commit is contained in:
hexated 2022-12-10 13:14:11 +07:00
parent 489da5c5c4
commit 85d2e334f6
2 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,5 @@
// use an integer for version numbers
version = 11
version = 12
cloudstream {

View File

@ -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,