fixed again

This commit is contained in:
jack 2023-11-30 22:05:52 +07:00
parent 59f936c2ba
commit 05bf61a9bb
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -230,7 +230,7 @@ class KuramanimeProvider : MainAPI() {
private suspend fun fetchAuth(url: String) : Pair<String?,String?> {
val found = WebViewResolver(
Regex("""$mainUrl/\w{32}""")
Regex("""$mainUrl/\w{24,36}""")
).resolveUsingWebView(
requestCreator(
"GET", url
@ -239,7 +239,7 @@ class KuramanimeProvider : MainAPI() {
return found?.url.toString() to found?.headers?.get("Authorization")
}
private suspend fun getAuth(url: String) = auth ?: fetchAuth(url)
private suspend fun getAuth(url: String) = auth ?: fetchAuth(url).also { auth = it }
private suspend fun getMisc(url: String?): String {
val misc = app.get(