mirror of
https://github.com/recloudstream/cloudstream-extensions-multilingual.git
synced 2024-08-15 03:15:14 +00:00
Fix load movie for vostfree
This commit is contained in:
parent
ec3edbb336
commit
fbc3585980
3 changed files with 4 additions and 4 deletions
|
@ -17,7 +17,7 @@ class FrenchStreamProvider : MainAPI() {
|
||||||
|
|
||||||
override suspend fun search(query: String): List<SearchResponse> {
|
override suspend fun search(query: String): List<SearchResponse> {
|
||||||
val link = "$mainUrl/?do=search&subaction=search&story=$query" // search'
|
val link = "$mainUrl/?do=search&subaction=search&story=$query" // search'
|
||||||
var mediaType = TvType.Anime
|
|
||||||
val document =
|
val document =
|
||||||
app.post(link).document // app.get() permet de télécharger la page html avec une requete HTTP (get)
|
app.post(link).document // app.get() permet de télécharger la page html avec une requete HTTP (get)
|
||||||
val results = document.select("div#dle-content > > div.short")
|
val results = document.select("div#dle-content > > div.short")
|
||||||
|
@ -224,7 +224,7 @@ class FrenchStreamProvider : MainAPI() {
|
||||||
val type = select("span.mli-eps").text()
|
val type = select("span.mli-eps").text()
|
||||||
val title = select("div.short-title").text()
|
val title = select("div.short-title").text()
|
||||||
val link = select("a.short-poster").attr("href").replace("wvw.","") //wvw is an issue
|
val link = select("a.short-poster").attr("href").replace("wvw.","") //wvw is an issue
|
||||||
var quality = getQualityFromString("")
|
var quality: SearchQuality?
|
||||||
if (qualityExtracted.contains("HDLight")) {
|
if (qualityExtracted.contains("HDLight")) {
|
||||||
quality = getQualityFromString("HD")
|
quality = getQualityFromString("HD")
|
||||||
} else if (qualityExtracted.contains("Bdrip")) {
|
} else if (qualityExtracted.contains("Bdrip")) {
|
||||||
|
|
|
@ -127,7 +127,7 @@ class VostfreeProvider : MainAPI() {
|
||||||
val seasontext = meta?.select("ul.slide-top > li:last-child > b:last-child")?.text()
|
val seasontext = meta?.select("ul.slide-top > li:last-child > b:last-child")?.text()
|
||||||
var indication: String? = null
|
var indication: String? = null
|
||||||
|
|
||||||
if (seasontext != null) {
|
if (seasontext != null && !seasontext.contains("""([a-zA-Z])""".toRegex())) {
|
||||||
seasonNumber = seasontext.toInt()
|
seasonNumber = seasontext.toInt()
|
||||||
|
|
||||||
if (seasonNumber!! < 1) { // seem a an OVA has 0 as season number
|
if (seasonNumber!! < 1) { // seem a an OVA has 0 as season number
|
||||||
|
|
|
@ -30,7 +30,7 @@ class WiflixProvider : MainAPI() {
|
||||||
override suspend fun search(query: String): List<SearchResponse> {
|
override suspend fun search(query: String): List<SearchResponse> {
|
||||||
val link =
|
val link =
|
||||||
"$mainUrl/index.php?do=search&subaction=search&story=$query&submit=Submit+Query" // search'
|
"$mainUrl/index.php?do=search&subaction=search&story=$query&submit=Submit+Query" // search'
|
||||||
var mediaType = TvType.Anime
|
|
||||||
val document =
|
val document =
|
||||||
app.post(link).document // app.get() permet de télécharger la page html avec une requete HTTP (get)
|
app.post(link).document // app.get() permet de télécharger la page html avec une requete HTTP (get)
|
||||||
val results = document.select("div#dle-content > div.clearfix")
|
val results = document.select("div#dle-content > div.clearfix")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue