mirror of
https://github.com/recloudstream/cloudstream-extensions-multilingual.git
synced 2024-08-15 03:15:14 +00:00
Change title and use apmap
This commit is contained in:
parent
853ccf6bc5
commit
320453fe34
1 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@ import org.jsoup.nodes.Element
|
||||||
class VostfreeProvider : MainAPI() {
|
class VostfreeProvider : MainAPI() {
|
||||||
// VostFreeProvider() est ajouté à la liste allProviders dans MainAPI.kt
|
// VostFreeProvider() est ajouté à la liste allProviders dans MainAPI.kt
|
||||||
override var mainUrl = "https://vostfree.cx"
|
override var mainUrl = "https://vostfree.cx"
|
||||||
override var name = "vostfree"
|
override var name = "Vostfree"
|
||||||
override val hasQuickSearch = false // recherche rapide (optionel, pas vraimet utile)
|
override val hasQuickSearch = false // recherche rapide (optionel, pas vraimet utile)
|
||||||
override val hasMainPage = true // page d'accueil (optionel mais encoragé)
|
override val hasMainPage = true // page d'accueil (optionel mais encoragé)
|
||||||
override var lang = "fr" // fournisseur est en francais
|
override var lang = "fr" // fournisseur est en francais
|
||||||
|
@ -316,7 +316,7 @@ class VostfreeProvider : MainAPI() {
|
||||||
val movies = document.select("div#content > div#dle-content > div.movie-poster")
|
val movies = document.select("div#content > div#dle-content > div.movie-poster")
|
||||||
|
|
||||||
val home =
|
val home =
|
||||||
movies.mapNotNull { article -> // avec mapnotnull si un élément est null, il sera automatiquement enlevé de la liste
|
movies.apmap { article -> // avec mapnotnull si un élément est null, il sera automatiquement enlevé de la liste
|
||||||
article.toSearchResponse()
|
article.toSearchResponse()
|
||||||
}
|
}
|
||||||
return newHomePageResponse(request.name, home)
|
return newHomePageResponse(request.name, home)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue