mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
Gomov: update loadLinks
This commit is contained in:
parent
c3d3205ab5
commit
5f77377f75
4 changed files with 17 additions and 26 deletions
|
@ -1,7 +1,7 @@
|
|||
import org.jetbrains.kotlin.konan.properties.Properties
|
||||
|
||||
// use an integer for version numbers
|
||||
version = 13
|
||||
version = 14
|
||||
|
||||
android {
|
||||
defaultConfig {
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -151,15 +151,23 @@ 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")
|
||||
|
||||
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)
|
||||
).document.select("iframe").attr("src")
|
||||
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")
|
||||
).document.select("iframe").attr("src")
|
||||
|
||||
loadExtractor(httpsify(server), "$directUrl/", subtitleCallback, callback)
|
||||
loadExtractor(httpsify(server), "$directUrl/", subtitleCallback, callback)
|
||||
}
|
||||
}
|
||||
|
||||
return true
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue