From a57cf0db3c23c2ef316a1008ad580bd1de0e3564 Mon Sep 17 00:00:00 2001 From: CakesTwix Date: Fri, 17 Feb 2023 22:59:55 +0200 Subject: [PATCH] Eneyida: fix search --- .../src/main/kotlin/com/lagradost/EneyidaProvider.kt | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/EneyidaProvider/src/main/kotlin/com/lagradost/EneyidaProvider.kt b/EneyidaProvider/src/main/kotlin/com/lagradost/EneyidaProvider.kt index 240e80a..48def72 100644 --- a/EneyidaProvider/src/main/kotlin/com/lagradost/EneyidaProvider.kt +++ b/EneyidaProvider/src/main/kotlin/com/lagradost/EneyidaProvider.kt @@ -1,6 +1,5 @@ package com.lagradost -import android.util.Log import com.lagradost.models.PlayerJson import com.lagradost.cloudstream3.* import com.lagradost.cloudstream3.LoadResponse.Companion.addActors @@ -8,9 +7,7 @@ import com.lagradost.cloudstream3.LoadResponse.Companion.addTrailer import com.lagradost.cloudstream3.utils.AppUtils.tryParseJson import com.lagradost.cloudstream3.utils.ExtractorLink import com.lagradost.cloudstream3.utils.M3u8Helper -import org.jsoup.Jsoup import org.jsoup.nodes.Element -import java.util.* class EneyidaProvider : MainAPI() { @@ -60,14 +57,15 @@ class EneyidaProvider : MainAPI() { override suspend fun search(query: String): List { val document = app.post( - url = mainUrl, + url = "$mainUrl", data = mapOf( "do" to "search", "subaction" to "search", "story" to query.replace(" ", "+") ) ).document - return document.select("div.movie-item.short-item").map { + + return document.select("article.short").map { it.toSearchResponse() } } @@ -154,7 +152,6 @@ class EneyidaProvider : MainAPI() { val m3u8Url = app.get(dataList[1]).document.select("script").html() .substringAfterLast("file:\"") .substringBefore("\",") - Log.d("loadLinks-debug", m3u8Url) M3u8Helper.generateM3u8( source = dataList[0], streamUrl = m3u8Url,