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 // use an integer for version numbers
version = 88 version = 89
cloudstream { cloudstream {

View File

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