fixed Kuramanime

This commit is contained in:
jack 2023-11-30 19:08:55 +07:00
parent be6b026fe0
commit 4c811724bb
2 changed files with 3 additions and 8 deletions

View file

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

View file

@ -227,14 +227,9 @@ class KuramanimeProvider : MainAPI() {
return true return true
} }
private fun getAuth() : String {
val key = "kuramanime3:LEcXGYdOGcMCV8jM5fhRdM2mneSj6kaNts:${APIHolder.unixTimeMS};"
return base64Encode(base64Encode(key.toByteArray()).toByteArray())
}
private suspend fun fetchAuth(url: String) : String? { private suspend fun fetchAuth(url: String) : String? {
val found = WebViewResolver( val found = WebViewResolver(
Regex("$mainUrl/misc/post/EVhcpMNbO77acNZcHr2XVjaG8WAdNC1u") Regex("$mainUrl/OvBEip5oFwoN00rAl1Ab014feJWmLvhC")
).resolveUsingWebView( ).resolveUsingWebView(
requestCreator( requestCreator(
"GET", url "GET", url
@ -247,7 +242,7 @@ class KuramanimeProvider : MainAPI() {
private suspend fun getMisc(): String { private suspend fun getMisc(): String {
val misc = app.get( val misc = app.get(
"$mainUrl/misc/post/EVhcpMNbO77acNZcHr2XVjaG8WAdNC1u", "$mainUrl/OvBEip5oFwoN00rAl1Ab014feJWmLvhC",
headers = headers + mapOf("X-Request-ID" to getRequestId()), headers = headers + mapOf("X-Request-ID" to getRequestId()),
cookies = cookies cookies = cookies
) )