mirror of
https://github.com/recloudstream/cloudstream-extensions-multilingual.git
synced 2024-08-15 03:15:14 +00:00
Add tags and complete season
This commit is contained in:
parent
8e732382f9
commit
16c1064a5c
1 changed files with 9 additions and 3 deletions
|
@ -94,6 +94,9 @@ class WiflixProvider : MainAPI() {
|
||||||
val yearRegex = Regex("""ate de sortie\: (\d*)""")
|
val yearRegex = Regex("""ate de sortie\: (\d*)""")
|
||||||
val year =yearRegex.find(document.text())?.groupValues?.get(1)
|
val year =yearRegex.find(document.text())?.groupValues?.get(1)
|
||||||
|
|
||||||
|
|
||||||
|
val tags = document.select("[itemprop=genre] > a").apmap {it.text()} // séléctione tous les tags et les ajoutes à une liste
|
||||||
|
|
||||||
if (episodeFrfound.text().contains("Episode")) {
|
if (episodeFrfound.text().contains("Episode")) {
|
||||||
mediaType = TvType.TvSeries
|
mediaType = TvType.TvSeries
|
||||||
episodes = episodeFrfound.takeEpisode(url)
|
episodes = episodeFrfound.takeEpisode(url)
|
||||||
|
@ -156,6 +159,7 @@ class WiflixProvider : MainAPI() {
|
||||||
this.recommendations = recommendations
|
this.recommendations = recommendations
|
||||||
this.year = year?.toInt()
|
this.year = year?.toInt()
|
||||||
this.comingSoon =comingSoon
|
this.comingSoon =comingSoon
|
||||||
|
this.tags = tags
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
val description = document.selectFirst("span[itemprop=description]")?.text()
|
val description = document.selectFirst("span[itemprop=description]")?.text()
|
||||||
|
@ -170,6 +174,7 @@ class WiflixProvider : MainAPI() {
|
||||||
this.recommendations = recommendations
|
this.recommendations = recommendations
|
||||||
this.year = year?.toInt()
|
this.year = year?.toInt()
|
||||||
this.comingSoon =comingSoon
|
this.comingSoon =comingSoon
|
||||||
|
this.tags = tags
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -289,9 +294,10 @@ class WiflixProvider : MainAPI() {
|
||||||
|
|
||||||
override val mainPage = mainPageOf(
|
override val mainPage = mainPageOf(
|
||||||
Pair("$mainUrl/films-prochainement/page/", "Film Prochainement en Streaming"),
|
Pair("$mainUrl/films-prochainement/page/", "Film Prochainement en Streaming"),
|
||||||
Pair("$mainUrl/film-en-streaming/page/", "Film en streaming"),
|
Pair("$mainUrl/film-en-streaming/page/", "Top Films cette année"),
|
||||||
Pair("$mainUrl/serie-en-streaming/page/", "Serie en streaming"),
|
Pair("$mainUrl/serie-en-streaming/page/", "Top Séries cette année"),
|
||||||
Pair("$mainUrl/film-ancien/page/", "Film zavira")
|
Pair("$mainUrl/saison-complete/page/", "Les saisons complètes"),
|
||||||
|
Pair("$mainUrl/film-ancien/page/", "Film zahalé (ancien)")
|
||||||
)
|
)
|
||||||
|
|
||||||
override suspend fun getMainPage(page: Int, request: MainPageRequest): HomePageResponse {
|
override suspend fun getMainPage(page: Int, request: MainPageRequest): HomePageResponse {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue