sora: fixed GMovies

This commit is contained in:
hexated 2023-02-11 14:14:38 +07:00
parent b4d1b6cb65
commit ea0b76509d
2 changed files with 6 additions and 4 deletions

View File

@ -1,5 +1,5 @@
// use an integer for version numbers
version = 88
version = 89
cloudstream {

View File

@ -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? {