mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
[Loklok] fixed Quick Search
This commit is contained in:
parent
489da5c5c4
commit
85d2e334f6
2 changed files with 3 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
// use an integer for version numbers
|
// use an integer for version numbers
|
||||||
version = 11
|
version = 12
|
||||||
|
|
||||||
|
|
||||||
cloudstream {
|
cloudstream {
|
||||||
|
|
|
@ -71,7 +71,7 @@ class Loklok : MainAPI() {
|
||||||
|
|
||||||
return newMovieSearchResponse(
|
return newMovieSearchResponse(
|
||||||
title ?: name ?: return null,
|
title ?: name ?: return null,
|
||||||
UrlData(id, category).toJson(),
|
UrlData(id, category ?: domainType).toJson(),
|
||||||
TvType.Movie,
|
TvType.Movie,
|
||||||
) {
|
) {
|
||||||
this.posterUrl = (imageUrl ?: coverVerticalUrl)?.let {
|
this.posterUrl = (imageUrl ?: coverVerticalUrl)?.let {
|
||||||
|
@ -350,6 +350,7 @@ class Loklok : MainAPI() {
|
||||||
data class Media(
|
data class Media(
|
||||||
@JsonProperty("id") val id: Any? = null,
|
@JsonProperty("id") val id: Any? = null,
|
||||||
@JsonProperty("category") val category: Int? = null,
|
@JsonProperty("category") val category: Int? = null,
|
||||||
|
@JsonProperty("domainType") val domainType: Int? = null,
|
||||||
@JsonProperty("imageUrl") val imageUrl: String? = null,
|
@JsonProperty("imageUrl") val imageUrl: String? = null,
|
||||||
@JsonProperty("coverVerticalUrl") val coverVerticalUrl: String? = null,
|
@JsonProperty("coverVerticalUrl") val coverVerticalUrl: String? = null,
|
||||||
@JsonProperty("title") val title: String? = null,
|
@JsonProperty("title") val title: String? = null,
|
||||||
|
|
Loading…
Reference in a new issue