mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
small fix
This commit is contained in:
parent
f6301d2f81
commit
08d11e47f5
1 changed files with 3 additions and 1 deletions
|
@ -2738,7 +2738,9 @@ object SoraExtractor : SoraStream() {
|
||||||
} else {
|
} else {
|
||||||
"shows/play/$urlSlug"
|
"shows/play/$urlSlug"
|
||||||
}
|
}
|
||||||
val url = "$monsterMainUrl/$playSlug"
|
val sid = "9k9iupt5sebbnfajrc6ti3ht7l"
|
||||||
|
val sec = "1974bc4a902c4d69fcbab261dcec69094a9b8164"
|
||||||
|
val url = "$monsterMainUrl/$playSlug?mid=1&sid=$sid&sec=$sec&t=${System.currentTimeMillis()}"
|
||||||
val res = app.get(url).document
|
val res = app.get(url).document
|
||||||
val script = res.selectFirst("script:containsData(window['show_storage'])")?.data()
|
val script = res.selectFirst("script:containsData(window['show_storage'])")?.data()
|
||||||
val hash = Regex("hash:\\s*['\"](\\S+)['\"],").find(script ?: return)?.groupValues?.get(1)
|
val hash = Regex("hash:\\s*['\"](\\S+)['\"],").find(script ?: return)?.groupValues?.get(1)
|
||||||
|
|
Loading…
Reference in a new issue