Gomov: added Dutamovie

This commit is contained in:
sora 2023-07-20 15:44:27 +07:00
parent a55dc31798
commit e1cbf5be2e
6 changed files with 81 additions and 24 deletions

View file

@ -1,12 +1,12 @@
// use an integer for version numbers // use an integer for version numbers
version = 1 version = 2
cloudstream { cloudstream {
language = "id" language = "id"
// All of these properties are optional, you can safely remove them // All of these properties are optional, you can safely remove them
// description = "Lorem Ipsum" description = "Include: DutaMovie"
authors = listOf("Hexated") authors = listOf("Hexated")
/** /**

View file

@ -0,0 +1,44 @@
package com.hexated
import com.lagradost.cloudstream3.*
import com.lagradost.cloudstream3.utils.ExtractorLink
import com.lagradost.cloudstream3.utils.httpsify
import com.lagradost.cloudstream3.utils.loadExtractor
class DutaMovie : Gomov() {
override var mainUrl = "https://dutamovie21.live"
override var name = "DutaMovie"
override val hasMainPage = true
override var lang = "id"
override val supportedTypes = setOf(
TvType.Movie,
TvType.TvSeries,
TvType.AsianDrama
)
override val mainPage = mainPageOf(
"category/box-office/page/%d/" to "Box Office",
"category/serial-tv/page/%d/" to "Serial TV",
"category/animation/page/%d/" to "Animasi",
"country/korea/page/%d/" to "Serial TV Korea",
"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

@ -0,0 +1,24 @@
package com.hexated
import com.lagradost.cloudstream3.extractors.Filesim
import com.lagradost.cloudstream3.extractors.Gdriveplayer
import com.lagradost.cloudstream3.extractors.StreamSB
class Dutamovie21 : StreamSB() {
override var name = "Dutamovie21"
override var mainUrl = "https://dutamovie21.xyz"
}
class Filelions : Filesim() {
override val name = "Filelions"
override var mainUrl = "https://filelions.to"
}
class Likessb : StreamSB() {
override var name = "Likessb"
override var mainUrl = "https://likessb.com"
}
class DbGdriveplayer : Gdriveplayer() {
override var mainUrl = "https://database.gdriveplayer.us"
}

View file

@ -3,13 +3,12 @@ package com.hexated
import com.lagradost.cloudstream3.* import com.lagradost.cloudstream3.*
import com.lagradost.cloudstream3.LoadResponse.Companion.addActors import com.lagradost.cloudstream3.LoadResponse.Companion.addActors
import com.lagradost.cloudstream3.LoadResponse.Companion.addTrailer import com.lagradost.cloudstream3.LoadResponse.Companion.addTrailer
import com.lagradost.cloudstream3.extractors.*
import com.lagradost.cloudstream3.utils.ExtractorLink import com.lagradost.cloudstream3.utils.ExtractorLink
import com.lagradost.cloudstream3.utils.httpsify import com.lagradost.cloudstream3.utils.httpsify
import com.lagradost.cloudstream3.utils.loadExtractor import com.lagradost.cloudstream3.utils.loadExtractor
import org.jsoup.nodes.Element import org.jsoup.nodes.Element
class Gomov : MainAPI() { open class Gomov : MainAPI() {
override var mainUrl = "https://gomov.bio" override var mainUrl = "https://gomov.bio"
override var name = "Gomov" override var name = "Gomov"
override val hasMainPage = true override val hasMainPage = true
@ -102,16 +101,18 @@ class Gomov : MainAPI() {
} }
return if (tvType == TvType.TvSeries) { return if (tvType == TvType.TvSeries) {
val episodes = document.select("div.vid-episodes div.episode").map { eps -> val episodes = document.select("div.vid-episodes a, div.gmr-listseries a").map { eps ->
val href = fixUrl(eps.select("a").attr("href")) val href = fixUrl(eps.attr("href"))
val episode = eps.attr("data-epi").toIntOrNull() val name = eps.text()
val season = eps.attr("data-sea").toIntOrNull() val episode = name.split(" ").lastOrNull()?.filter { it.isDigit() }?.toIntOrNull()
val season = name.split(" ").firstOrNull()?.filter { it.isDigit() }?.toIntOrNull()
Episode( Episode(
href, href,
name,
season = season, season = season,
episode = episode, episode = episode,
) )
} }.filter { it.episode != null }
newTvSeriesLoadResponse(title, url, TvType.TvSeries, episodes) { newTvSeriesLoadResponse(title, url, TvType.TvSeries, episodes) {
this.posterUrl = poster this.posterUrl = poster
this.year = year this.year = year
@ -159,18 +160,4 @@ class Gomov : MainAPI() {
} }
}
class Filelions : Filesim() {
override val name = "Filelions"
override var mainUrl = "https://filelions.to"
}
class Likessb : StreamSB() {
override var name = "Likessb"
override var mainUrl = "https://likessb.com"
}
class DbGdriveplayer : Gdriveplayer() {
override var mainUrl = "https://database.gdriveplayer.us"
} }

View file

@ -10,8 +10,10 @@ class GomovPlugin: Plugin() {
override fun load(context: Context) { override fun load(context: Context) {
// All providers should be added in this manner. Please don't edit the providers list directly. // All providers should be added in this manner. Please don't edit the providers list directly.
registerMainAPI(Gomov()) registerMainAPI(Gomov())
registerMainAPI(DutaMovie())
registerExtractorAPI(Filelions()) registerExtractorAPI(Filelions())
registerExtractorAPI(Likessb()) registerExtractorAPI(Likessb())
registerExtractorAPI(DbGdriveplayer()) registerExtractorAPI(DbGdriveplayer())
registerExtractorAPI(Dutamovie21())
} }
} }

View file

@ -6,7 +6,7 @@ cloudstream {
language = "hi" language = "hi"
// All of these properties are optional, you can safely remove them // All of these properties are optional, you can safely remove them
// description = "Lorem Ipsum" description = "Include: Watchomovies"
authors = listOf("Hexated") authors = listOf("Hexated")
/** /**