fixed seaching with spaces

This commit is contained in:
LagradOst 2021-10-05 19:06:11 +02:00 committed by GitHub
parent 0fc1147600
commit 9728bfe2c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -99,7 +99,7 @@ class SflixProvider : MainAPI() {
get() = VPNStatus.None get() = VPNStatus.None
override fun search(query: String): List<SearchResponse> { override fun search(query: String): List<SearchResponse> {
val url = "$mainUrl/search/$query" val url = "$mainUrl/search/${query.replace(" ", "-")}"
val html = get(url).text val html = get(url).text
val document = Jsoup.parse(html) val document = Jsoup.parse(html)