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
|
// use an integer for version numbers
|
||||||
version = 24
|
version = 25
|
||||||
|
|
||||||
|
|
||||||
cloudstream {
|
cloudstream {
|
||||||
|
|
|
@ -230,7 +230,7 @@ class KuramanimeProvider : MainAPI() {
|
||||||
|
|
||||||
private suspend fun fetchAuth(url: String) : Pair<String?,String?> {
|
private suspend fun fetchAuth(url: String) : Pair<String?,String?> {
|
||||||
val found = WebViewResolver(
|
val found = WebViewResolver(
|
||||||
Regex("""$mainUrl/\w{32}""")
|
Regex("""$mainUrl/\w{24,36}""")
|
||||||
).resolveUsingWebView(
|
).resolveUsingWebView(
|
||||||
requestCreator(
|
requestCreator(
|
||||||
"GET", url
|
"GET", url
|
||||||
|
@ -239,7 +239,7 @@ class KuramanimeProvider : MainAPI() {
|
||||||
return found?.url.toString() to found?.headers?.get("Authorization")
|
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 {
|
private suspend fun getMisc(url: String?): String {
|
||||||
val misc = app.get(
|
val misc = app.get(
|
||||||
|
|
Loading…
Reference in a new issue