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
|
||||
version = 88
|
||||
version = 89
|
||||
|
||||
|
||||
cloudstream {
|
||||
|
|
|
@ -258,7 +258,7 @@ suspend fun getDrivebotLink(url: String?): String? {
|
|||
.build()
|
||||
val cookies = mapOf("PHPSESSID" to "$ssid")
|
||||
|
||||
val result = app.post(
|
||||
val file = app.post(
|
||||
link,
|
||||
requestBody = body,
|
||||
headers = mapOf(
|
||||
|
@ -268,8 +268,10 @@ suspend fun getDrivebotLink(url: String?): String? {
|
|||
),
|
||||
cookies = cookies,
|
||||
referer = url
|
||||
).text
|
||||
return tryParseJson<DriveBotLink>(result)?.url
|
||||
).parsedSafe<DriveBotLink>()?.url ?: return null
|
||||
|
||||
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? {
|
||||
|
|
Loading…
Reference in a new issue