mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
f0e897f8f0
* Update RebahinProvider.kt * Update LayarKacaProvider.kt update main url ="https://tv3.lk21official.wiki" change to "https://tv4.lk21official.wiki" * Update LayarKacaProvider.kt * Update Dubbindo.kt update domain * Update Cgvindo.kt * Update DramaidProvider.kt * Update DutaMovie.kt * Update Ngefilm.kt * Update Pusatfilm.kt * Update LayarKacaProvider.kt * Update build.gradle.kts * Update RebahinProvider.kt * Update DutaMovie.kt Update mainurl * Update build.gradle.kts * Update Ngefilm.kt * Update DramaSerial.kt * Update Nodrakorid.kt update mainurl * Update Pusatfilm.kt update mainurl * Update DramaSerial.kt update serverurl http://31.220.73.179/ * Update build.gradle.kts * Update LayarKacaProvider.kt update mainurl * Update DutaMovie.kt update mainurl * Update Pusatfilm.kt update mainurl * Update Multiplex.kt update mainurl * Update Ngefilm.kt update mainurl * Update Ngefilm.kt update mainurl * Update DutaMovie.kt update mainurl * Update Multiplex.kt update mainurl * Update Ngefilm.kt update mainurl * Update Pusatfilm.kt update mainurl * Update build.gradle.kts * Update LayarKacaProvider.kt update mainUrl update seriesUrl
40 lines
1.5 KiB
Kotlin
40 lines
1.5 KiB
Kotlin
package com.hexated
|
|
|
|
import com.lagradost.cloudstream3.Episode
|
|
import com.lagradost.cloudstream3.LoadResponse
|
|
import com.lagradost.cloudstream3.TvSeriesLoadResponse
|
|
import com.lagradost.cloudstream3.*
|
|
|
|
class Pusatfilm : Gomov() {
|
|
override var mainUrl = "https://tv2.pusatfilm21.art"
|
|
override var name = "Pusatfilm"
|
|
override val mainPage = mainPageOf(
|
|
"film-terbaru/page/%d/" to "Film Terbaru",
|
|
"series-terbaru/page/%d/" to "Series Terbaru",
|
|
"drama-korea/page/%d/" to "Drama Korea",
|
|
"drama-china/page/%d/" to "Drama China",
|
|
)
|
|
|
|
override suspend fun load(url: String): LoadResponse {
|
|
return super.load(url).apply {
|
|
when (this) {
|
|
is TvSeriesLoadResponse -> {
|
|
val document = app.get(url).document
|
|
this.episodes = document.select("div.vid-episodes a, div.gmr-listseries a").map { eps ->
|
|
val href = fixUrl(eps.attr("href"))
|
|
val name = eps.attr("title")
|
|
val episode = "Episode\\s*(\\d+)".toRegex().find(name)?.groupValues?.get(1)
|
|
val season = "Season\\s*(\\d+)".toRegex().find(name)?.groupValues?.get(1)
|
|
Episode(
|
|
href,
|
|
name,
|
|
season = season?.toIntOrNull(),
|
|
episode = episode?.toIntOrNull(),
|
|
)
|
|
}.filter { it.episode != null }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|