Gomov: update loadLinks

This commit is contained in:
helo 2023-09-22 20:54:30 +07:00
parent c3d3205ab5
commit 5f77377f75
4 changed files with 17 additions and 26 deletions

View file

@ -1,7 +1,7 @@
import org.jetbrains.kotlin.konan.properties.Properties
// use an integer for version numbers
version = 13
version = 14
android {
defaultConfig {

View file

@ -17,21 +17,4 @@ open class DutaMovie : Gomov() {
"country/indonesia/page/%d/" to "Serial TV Indonesia",
)
override suspend fun loadLinks(
data: String,
isCasting: Boolean,
subtitleCallback: (SubtitleFile) -> Unit,
callback: (ExtractorLink) -> Unit
): Boolean {
app.get(data).document.select("ul.muvipro-player-tabs li a").apmap {
val iframe = app.get(fixUrl(it.attr("href"))).document.selectFirst("div.gmr-embed-responsive iframe")
?.attr("src")
loadExtractor(httpsify(iframe ?: return@apmap ), "$mainUrl/", subtitleCallback, callback)
}
return true
}
}

View file

@ -151,16 +151,24 @@ open class Gomov : MainAPI() {
): Boolean {
val document = app.get(data).document
val id = document.selectFirst("div#muvipro_player_content_id")!!.attr("data-id")
val id = document.selectFirst("div#muvipro_player_content_id")?.attr("data-id")
if(id.isNullOrEmpty()) {
document.select("ul.muvipro-player-tabs li a").apmap {
val iframe = app.get(fixUrl(it.attr("href"))).document.selectFirst("div.gmr-embed-responsive iframe")
?.attr("src")
loadExtractor(httpsify(iframe ?: return@apmap ), "$directUrl/", subtitleCallback, callback)
}
} else {
document.select("div.tab-content-ajax").apmap {
val server = app.post(
"$directUrl/wp-admin/admin-ajax.php",
data = mapOf("action" to "muvipro_player_content", "tab" to it.attr("id"), "post_id" to id)
data = mapOf("action" to "muvipro_player_content", "tab" to it.attr("id"), "post_id" to "$id")
).document.select("iframe").attr("src")
loadExtractor(httpsify(server), "$directUrl/", subtitleCallback, callback)
}
}
return true

View file

@ -9,7 +9,7 @@ import com.lagradost.cloudstream3.utils.ExtractorLink
import com.lagradost.cloudstream3.utils.loadExtractor
class Ngefilm : Gomov() {
override var mainUrl = "https://nge-film21.site"
override var mainUrl = "https://ngefilm21.us"
override var name = "Ngefilm"
override val mainPage = mainPageOf(