Update SoraExtractor.kt

This commit is contained in:
Hexated 2023-12-20 15:33:26 +07:00 committed by GitHub
parent 8f84b3a05d
commit 2ec22f8685
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2094,7 +2094,7 @@ object SoraExtractor : SoraStream() {
.substringBefore("-")
}
val res = app.get(fixUrl(iframe, api), verify = false)
delay(1000)
delay(2000)
val serverUrl = res.document.selectFirst("script:containsData(pushState)")?.data()?.let {
""",\s*'([^']+)""".toRegex().find(it)?.groupValues?.get(1)
} ?: return