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
239a847d5e
commit
4ea8f99029
1 changed files with 2 additions and 2 deletions
|
@ -2206,8 +2206,8 @@ object SoraExtractor : SoraStream() {
|
||||||
.attr("href")
|
.attr("href")
|
||||||
val res = app.get(fixUrl(streamUrl, monsterMainUrl)).document
|
val res = app.get(fixUrl(streamUrl, monsterMainUrl)).document
|
||||||
val script = res.selectFirst("script:containsData(hash:)")?.data()
|
val script = res.selectFirst("script:containsData(hash:)")?.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)
|
||||||
val expires = Regex("expires:\\s*(\\d+),").find(script)?.groupValues?.get(1)
|
val expires = Regex("expires:\\s*(\\d+)").find(script)?.groupValues?.get(1)
|
||||||
|
|
||||||
val videoUrl = if (season == null) {
|
val videoUrl = if (season == null) {
|
||||||
"$monsterMainUrl/api/v1/security/movie-access?id_movie=$episodeId&hash=$hash&expires=$expires"
|
"$monsterMainUrl/api/v1/security/movie-access?id_movie=$episodeId&hash=$hash&expires=$expires"
|
||||||
|
|
Loading…
Reference in a new issue