From b8d38be47c0a9861bcb22feaceaa9e6072a2e176 Mon Sep 17 00:00:00 2001 From: hexated Date: Sat, 17 Dec 2022 05:29:01 +0700 Subject: [PATCH] small tweaks --- SoraStream/src/main/kotlin/com/hexated/SoraUtils.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SoraStream/src/main/kotlin/com/hexated/SoraUtils.kt b/SoraStream/src/main/kotlin/com/hexated/SoraUtils.kt index 1a7c7ba7..3f2092c3 100644 --- a/SoraStream/src/main/kotlin/com/hexated/SoraUtils.kt +++ b/SoraStream/src/main/kotlin/com/hexated/SoraUtils.kt @@ -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