mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
fixed again
This commit is contained in:
parent
59f936c2ba
commit
05bf61a9bb
2 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
// use an integer for version numbers
|
||||
version = 24
|
||||
version = 25
|
||||
|
||||
|
||||
cloudstream {
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue