mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
fixed
This commit is contained in:
parent
184f192dbc
commit
454c93fd88
1 changed files with 6 additions and 6 deletions
|
@ -29,10 +29,12 @@ class Loklok : MainAPI() {
|
||||||
|
|
||||||
// no license found
|
// no license found
|
||||||
// thanks to https://github.com/napthedev/filmhot for providing API
|
// thanks to https://github.com/napthedev/filmhot for providing API
|
||||||
|
companion object {
|
||||||
private val api = base64Decode("aHR0cHM6Ly9nYS1tb2JpbGUtYXBpLmxva2xvay50dg==")
|
private val api = base64Decode("aHR0cHM6Ly9nYS1tb2JpbGUtYXBpLmxva2xvay50dg==")
|
||||||
private val apiUrl = "$api/${base64Decode("Y21zL2FwcA==")}"
|
private val apiUrl = "$api/${base64Decode("Y21zL2FwcA==")}"
|
||||||
|
private val searchApi = base64Decode("aHR0cHM6Ly9maWxtaG90LmxpdmUvX25leHQvZGF0YS9NeXQzRm4tVHRXaHJ2a1RBaG45SGw=")
|
||||||
private val mainImageUrl = "https://images.weserv.nl"
|
private const val mainImageUrl = "https://images.weserv.nl"
|
||||||
|
}
|
||||||
|
|
||||||
private fun encode(input: String): String? = java.net.URLEncoder.encode(input, "utf-8")
|
private fun encode(input: String): String? = java.net.URLEncoder.encode(input, "utf-8")
|
||||||
|
|
||||||
|
@ -75,8 +77,6 @@ class Loklok : MainAPI() {
|
||||||
// "searchType" to ""
|
// "searchType" to ""
|
||||||
// ), headers = headers
|
// ), headers = headers
|
||||||
// )
|
// )
|
||||||
val searchApi =
|
|
||||||
base64Decode("aHR0cHM6Ly9maWxtaG90LmxpdmUvX25leHQvZGF0YS9NeXQzRm4tVHRXaHJ2a1RBaG45SGw=")
|
|
||||||
val res = app.get(
|
val res = app.get(
|
||||||
"$searchApi/search.json?q=$query",
|
"$searchApi/search.json?q=$query",
|
||||||
headers = mapOf("x-nextjs-data" to "1")
|
headers = mapOf("x-nextjs-data" to "1")
|
||||||
|
|
Loading…
Reference in a new issue