mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
small tweaks
This commit is contained in:
parent
5ed2658b08
commit
b8d38be47c
1 changed files with 3 additions and 3 deletions
|
@ -287,11 +287,11 @@ suspend fun bypassHrefli(url: String): String? {
|
|||
val directLink = script?.substringAfter("\"href\",\"")?.substringBefore("\")")
|
||||
val matchCookies =
|
||||
Regex("sumitbot_\\('(\\S+?)',\n|.?'(\\S+?)',").findAll(script ?: return null).map {
|
||||
it.groupValues[1] to it.groupValues[2]
|
||||
it.groupValues[2]
|
||||
}.toList()
|
||||
|
||||
val cookeName = matchCookies.firstOrNull()?.second ?: return null
|
||||
val cookeValue = matchCookies.lastOrNull()?.second ?: return null
|
||||
val cookeName = matchCookies.firstOrNull() ?: return null
|
||||
val cookeValue = matchCookies.lastOrNull() ?: return null
|
||||
|
||||
val cookies = mapOf(
|
||||
cookeName to cookeValue
|
||||
|
|
Loading…
Reference in a new issue