mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
fixed Hdfilmcehennemi sub & fixed Xcinetop home
This commit is contained in:
parent
eb46743df8
commit
4688a80be8
4 changed files with 68 additions and 24 deletions
|
@ -1,5 +1,5 @@
|
|||
// use an integer for version numbers
|
||||
version = 1
|
||||
version = 2
|
||||
|
||||
|
||||
cloudstream {
|
||||
|
|
|
@ -30,7 +30,7 @@ class Xcinetop : MainAPI() {
|
|||
)
|
||||
|
||||
override suspend fun getMainPage(page: Int, request: MainPageRequest): HomePageResponse {
|
||||
val document = app.get(request.data + page).document
|
||||
val document = app.get("${request.data}$page/").document
|
||||
val home = document.select("div#dle-content div.movie-item").mapNotNull {
|
||||
it.toSearchResult()
|
||||
}
|
||||
|
@ -48,7 +48,7 @@ class Xcinetop : MainAPI() {
|
|||
return newAnimeSearchResponse(title, href, TvType.TvSeries) {
|
||||
addQuality(quantity)
|
||||
addDub(episode)
|
||||
addPoster(posterUrl, headers = mapOf("Referer" to "$mainUrl/"))
|
||||
this.posterUrl = posterUrl
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -94,7 +94,7 @@ class Xcinetop : MainAPI() {
|
|||
fixUrl(it.attr("data-link"))
|
||||
}
|
||||
return newMovieLoadResponse(title, url, TvType.Movie, Links(link).toJson()) {
|
||||
addPoster(poster, headers = mapOf("Referer" to "$mainUrl/"))
|
||||
this.posterUrl = poster
|
||||
this.year = year
|
||||
plot = description
|
||||
this.tags = tags
|
||||
|
@ -115,7 +115,7 @@ class Xcinetop : MainAPI() {
|
|||
)
|
||||
}
|
||||
return newTvSeriesLoadResponse(title, url, TvType.TvSeries, episodes = episodes) {
|
||||
addPoster(poster, headers = mapOf("Referer" to "$mainUrl/"))
|
||||
this.posterUrl = poster
|
||||
this.year = year
|
||||
plot = description
|
||||
this.tags = tags
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue