small fix

This commit is contained in:
hexated 2023-04-11 10:13:36 +07:00
parent eea4a2103a
commit f6301d2f81

View file

@ -2732,15 +2732,13 @@ object SoraExtractor : SoraStream() {
season: Int? = null,
callback: (ExtractorLink) -> Unit,
) {
val monsterMainUrl = "https://dignes.monster"
val monsterMainUrl = "https://ditairridgeleg.monster"
val playSlug = if (season == null) {
"movies/play/$urlSlug"
} else {
"shows/play/$urlSlug"
}
val sid = "9k9iupt5sebbnfajrc6ti3ht7l"
val sec = "1974bc4a902c4d69fcbab261dcec69094a9b8164"
val url = "$monsterMainUrl/$playSlug?mid=1&sid=$sid&sec=$sec&t=${System.currentTimeMillis()}"
val url = "$monsterMainUrl/$playSlug"
val res = app.get(url).document
val script = res.selectFirst("script:containsData(window['show_storage'])")?.data()
val hash = Regex("hash:\\s*['\"](\\S+)['\"],").find(script ?: return)?.groupValues?.get(1)