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
eea4a2103a
commit
f6301d2f81
1 changed files with 2 additions and 4 deletions
|
@ -2732,15 +2732,13 @@ object SoraExtractor : SoraStream() {
|
||||||
season: Int? = null,
|
season: Int? = null,
|
||||||
callback: (ExtractorLink) -> Unit,
|
callback: (ExtractorLink) -> Unit,
|
||||||
) {
|
) {
|
||||||
val monsterMainUrl = "https://dignes.monster"
|
val monsterMainUrl = "https://ditairridgeleg.monster"
|
||||||
val playSlug = if (season == null) {
|
val playSlug = if (season == null) {
|
||||||
"movies/play/$urlSlug"
|
"movies/play/$urlSlug"
|
||||||
} else {
|
} else {
|
||||||
"shows/play/$urlSlug"
|
"shows/play/$urlSlug"
|
||||||
}
|
}
|
||||||
val sid = "9k9iupt5sebbnfajrc6ti3ht7l"
|
val url = "$monsterMainUrl/$playSlug"
|
||||||
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