fixed allmoviesforyou (?)

This commit is contained in:
Arjix 2021-09-24 19:19:36 +03:00 committed by GitHub
parent 711397c257
commit eb8a739d3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,6 +7,7 @@ import com.lagradost.cloudstream3.utils.Qualities
import com.lagradost.cloudstream3.utils.loadExtractor
import org.jsoup.Jsoup
import org.jsoup.nodes.Document
import java.net.URLDecoder
class AllMoviesForYouProvider : MainAPI() {
companion object {
@ -142,7 +143,7 @@ class AllMoviesForYouProvider : MainAPI() {
url,
this.name,
type,
mapper.writeValueAsString(data),
mapper.writeValueAsString(data.filter { it != "about:blank" }),
backgroundPoster,
year?.toIntOrNull(),
descipt,
@ -170,7 +171,7 @@ class AllMoviesForYouProvider : MainAPI() {
}
return false
} else if (data.startsWith(mainUrl) && data != mainUrl) {
val realDataUrl = data.replace("&", "&").replace("&", "&")
val realDataUrl = URLDecoder.decode(data, Charsets.UTF_8)
if (data.contains("trdownload")) {
callback(ExtractorLink(this.name, this.name, realDataUrl, mainUrl, Qualities.Unknown.value))
return true
@ -188,4 +189,4 @@ class AllMoviesForYouProvider : MainAPI() {
return true
}
}
}
}