mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
fixed Loklok search
This commit is contained in:
parent
df8099cc8c
commit
1240225d14
2 changed files with 3 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
// use an integer for version numbers
|
||||
version = 4
|
||||
version = 5
|
||||
|
||||
|
||||
cloudstream {
|
||||
|
|
|
@ -33,7 +33,6 @@ class Loklok : MainAPI() {
|
|||
companion object {
|
||||
private val api = base64Decode("aHR0cHM6Ly9nYS1tb2JpbGUtYXBpLmxva2xvay50dg==")
|
||||
private val apiUrl = "$api/${base64Decode("Y21zL2FwcA==")}"
|
||||
private val searchApi = base64Decode("aHR0cHM6Ly9maWxtaG90LmxpdmUvX25leHQvZGF0YS9NeXQzRm4tVHRXaHJ2a1RBaG45SGw=")
|
||||
private const val mainImageUrl = "https://images.weserv.nl"
|
||||
}
|
||||
|
||||
|
@ -79,6 +78,8 @@ class Loklok : MainAPI() {
|
|||
// "searchType" to ""
|
||||
// ), headers = headers
|
||||
// )
|
||||
val buildId = app.get("${base64Decode("aHR0cHM6Ly9maWxtaG90LmxpdmUvc2VhcmNo")}?q=$query").text.substringAfterLast("\"buildId\":\"").substringBefore("\",")
|
||||
val searchApi = "${base64Decode("aHR0cHM6Ly9maWxtaG90LmxpdmUvX25leHQvZGF0YQ==")}/$buildId"
|
||||
val res = app.get(
|
||||
"$searchApi/search.json?q=$query",
|
||||
headers = mapOf("x-nextjs-data" to "1")
|
||||
|
|
Loading…
Reference in a new issue