forked from recloudstream/cloudstream
fixed allmoviesforyou (?)
This commit is contained in:
parent
711397c257
commit
eb8a739d3d
1 changed files with 4 additions and 3 deletions
|
@ -7,6 +7,7 @@ import com.lagradost.cloudstream3.utils.Qualities
|
||||||
import com.lagradost.cloudstream3.utils.loadExtractor
|
import com.lagradost.cloudstream3.utils.loadExtractor
|
||||||
import org.jsoup.Jsoup
|
import org.jsoup.Jsoup
|
||||||
import org.jsoup.nodes.Document
|
import org.jsoup.nodes.Document
|
||||||
|
import java.net.URLDecoder
|
||||||
|
|
||||||
class AllMoviesForYouProvider : MainAPI() {
|
class AllMoviesForYouProvider : MainAPI() {
|
||||||
companion object {
|
companion object {
|
||||||
|
@ -142,7 +143,7 @@ class AllMoviesForYouProvider : MainAPI() {
|
||||||
url,
|
url,
|
||||||
this.name,
|
this.name,
|
||||||
type,
|
type,
|
||||||
mapper.writeValueAsString(data),
|
mapper.writeValueAsString(data.filter { it != "about:blank" }),
|
||||||
backgroundPoster,
|
backgroundPoster,
|
||||||
year?.toIntOrNull(),
|
year?.toIntOrNull(),
|
||||||
descipt,
|
descipt,
|
||||||
|
@ -170,7 +171,7 @@ class AllMoviesForYouProvider : MainAPI() {
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
} else if (data.startsWith(mainUrl) && data != mainUrl) {
|
} else if (data.startsWith(mainUrl) && data != mainUrl) {
|
||||||
val realDataUrl = data.replace("&", "&").replace("&", "&")
|
val realDataUrl = URLDecoder.decode(data, Charsets.UTF_8)
|
||||||
if (data.contains("trdownload")) {
|
if (data.contains("trdownload")) {
|
||||||
callback(ExtractorLink(this.name, this.name, realDataUrl, mainUrl, Qualities.Unknown.value))
|
callback(ExtractorLink(this.name, this.name, realDataUrl, mainUrl, Qualities.Unknown.value))
|
||||||
return true
|
return true
|
||||||
|
@ -188,4 +189,4 @@ class AllMoviesForYouProvider : MainAPI() {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue