mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
sora: fixed GMovies
This commit is contained in:
parent
b4d1b6cb65
commit
ea0b76509d
2 changed files with 6 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
||||||
// use an integer for version numbers
|
// use an integer for version numbers
|
||||||
version = 88
|
version = 89
|
||||||
|
|
||||||
|
|
||||||
cloudstream {
|
cloudstream {
|
||||||
|
|
|
@ -258,7 +258,7 @@ suspend fun getDrivebotLink(url: String?): String? {
|
||||||
.build()
|
.build()
|
||||||
val cookies = mapOf("PHPSESSID" to "$ssid")
|
val cookies = mapOf("PHPSESSID" to "$ssid")
|
||||||
|
|
||||||
val result = app.post(
|
val file = app.post(
|
||||||
link,
|
link,
|
||||||
requestBody = body,
|
requestBody = body,
|
||||||
headers = mapOf(
|
headers = mapOf(
|
||||||
|
@ -268,8 +268,10 @@ suspend fun getDrivebotLink(url: String?): String? {
|
||||||
),
|
),
|
||||||
cookies = cookies,
|
cookies = cookies,
|
||||||
referer = url
|
referer = url
|
||||||
).text
|
).parsedSafe<DriveBotLink>()?.url ?: return null
|
||||||
return tryParseJson<DriveBotLink>(result)?.url
|
|
||||||
|
return app.get(fixUrl(file, baseUrl)).document.selectFirst("script:containsData(window.open)")
|
||||||
|
?.data()?.substringAfter("window.open('")?.substringBefore("')")
|
||||||
}
|
}
|
||||||
|
|
||||||
suspend fun extractOiya(url: String, quality: String): String? {
|
suspend fun extractOiya(url: String, quality: String): String? {
|
||||||
|
|
Loading…
Reference in a new issue