Skip to content

Commit

Permalink
fixed again
Browse files Browse the repository at this point in the history
  • Loading branch information
jackjohn committed Nov 30, 2023
1 parent 59f936c commit 05bf61a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion KuramanimeProvider/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// use an integer for version numbers
version = 24
version = 25


cloudstream {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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(
Expand Down

0 comments on commit 05bf61a

Please sign in to comment.