cloudstream-extensions-hexated/Gomov/src/main/kotlin/com/hexated/Pusatfilm.kt

43 lines
1.5 KiB
Kotlin
Raw Normal View History

2023-10-08 13:20:06 +00:00
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() {
Adityajd patch 1 (#616) * 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 * Update UseeTv.kt update mainurl * Update Multiplex.kt fix indofilm * Update LayarKacaProvider.kt Update main url * Update build.gradle.kts Domain * Update DutaMovie.kt Update mainurl * Update Gomov.kt Update mainurl * Update Multiplex.kt Update mainurl * Update Ngefilm.kt Update mainurl * Update Pusatfilm.kt Update mainurl * Update Cgvindo.kt Update mainurl * Update Kitanonton.kt Update mainurl * Update RebahinProvider.kt Update mainurl * Update Pusatfilm.kt change to old mainurl
2024-02-29 21:27:45 +00:00
2024-01-21 12:39:02 +00:00
override var mainUrl = "https://pf21.vip"
Adityajd patch 1 (#616) * 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 * Update UseeTv.kt update mainurl * Update Multiplex.kt fix indofilm * Update LayarKacaProvider.kt Update main url * Update build.gradle.kts Domain * Update DutaMovie.kt Update mainurl * Update Gomov.kt Update mainurl * Update Multiplex.kt Update mainurl * Update Ngefilm.kt Update mainurl * Update Pusatfilm.kt Update mainurl * Update Cgvindo.kt Update mainurl * Update Kitanonton.kt Update mainurl * Update RebahinProvider.kt Update mainurl * Update Pusatfilm.kt change to old mainurl
2024-02-29 21:27:45 +00:00
2023-10-08 13:20:06 +00:00
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 }
}
}
}
}
}