From 9728bfe2c24893cc99439ecbeefa91146b480a74 Mon Sep 17 00:00:00 2001 From: LagradOst <46196380+Blatzar@users.noreply.github.com> Date: Tue, 5 Oct 2021 19:06:11 +0200 Subject: [PATCH] fixed seaching with spaces --- .../lagradost/cloudstream3/movieproviders/SflixProvider.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/lagradost/cloudstream3/movieproviders/SflixProvider.kt b/app/src/main/java/com/lagradost/cloudstream3/movieproviders/SflixProvider.kt index 92f9c918..74dc91b4 100644 --- a/app/src/main/java/com/lagradost/cloudstream3/movieproviders/SflixProvider.kt +++ b/app/src/main/java/com/lagradost/cloudstream3/movieproviders/SflixProvider.kt @@ -99,7 +99,7 @@ class SflixProvider : MainAPI() { get() = VPNStatus.None override fun search(query: String): List { - val url = "$mainUrl/search/$query" + val url = "$mainUrl/search/${query.replace(" ", "-")}" val html = get(url).text val document = Jsoup.parse(html) @@ -341,4 +341,4 @@ class SflixProvider : MainAPI() { return true } -} \ No newline at end of file +}