fix marin in anichi and added Nodrakorid

This commit is contained in:
hexated 2023-07-22 21:48:46 +07:00
parent 031aa780c9
commit bf9d2d5c31
7 changed files with 34 additions and 35 deletions

View file

@ -5,7 +5,7 @@ import com.lagradost.cloudstream3.utils.ExtractorLink
import com.lagradost.cloudstream3.utils.httpsify
import com.lagradost.cloudstream3.utils.loadExtractor
class DutaMovie : Gomov() {
open class DutaMovie : Gomov() {
override var mainUrl = "https://dutamovie21.live"
override var name = "DutaMovie"

View file

@ -12,6 +12,7 @@ class GomovPlugin: Plugin() {
registerMainAPI(Gomov())
registerMainAPI(DutaMovie())
registerMainAPI(Ngefilm())
registerMainAPI(Nodrakorid())
registerExtractorAPI(Filelions())
registerExtractorAPI(Likessb())
registerExtractorAPI(DbGdriveplayer())

View file

@ -8,7 +8,7 @@ import com.lagradost.cloudstream3.mainPageOf
import com.lagradost.cloudstream3.utils.ExtractorLink
import com.lagradost.cloudstream3.utils.loadExtractor
class Ngefilm : Gomov() {
class Ngefilm : DutaMovie() {
override var mainUrl = "https://ngefilm21.lol"
override var name = "Ngefilm"
@ -19,22 +19,4 @@ class Ngefilm : Gomov() {
"/page/%d/?s=&search=advanced&post_type=tv&index=&orderby=&genre=&movieyear=&country=indonesia&quality=" to "Series Indonesia",
)
override suspend fun loadLinks(
data: String,
isCasting: Boolean,
subtitleCallback: (SubtitleFile) -> Unit,
callback: (ExtractorLink) -> Unit
): Boolean {
val document = app.get(data).document
document.select("ul.muvipro-player-tabs li a").apmap { server ->
val iframe = app.get(fixUrl(server.attr("href"))).document.selectFirst("div.gmr-embed-responsive iframe")
?.attr("src")?.let { fixUrl(it) } ?: return@apmap
loadExtractor(iframe, "$mainUrl/", subtitleCallback, callback)
}
return true
}
}

View file

@ -0,0 +1,16 @@
package com.hexated
import com.lagradost.cloudstream3.mainPageOf
class Nodrakorid : DutaMovie() {
override var mainUrl = "https://no-drak-or.xyz"
override var name = "Nodrakorid"
override val mainPage = mainPageOf(
"genre/movie/page/%d/" to "Film Terbaru",
"genre/korean-movie/page/%d/" to "Film Korea",
"genre/drama/page/%d/" to "Drama Korea",
"genre/c-drama/c-drama-c-drama/page/%d/" to "Drama China",
"genre/thai-drama/page/%d/" to "Drama Thailand",
)
}