From 4e1f63b361e98bd2bed37c2fa76b3ac96563d831 Mon Sep 17 00:00:00 2001 From: Saurabh Kaperwan Date: Sat, 9 Nov 2024 19:18:14 +0530 Subject: [PATCH] update url --- Bollyflix/build.gradle.kts | 2 +- Bollyflix/src/main/kotlin/com/megix/BollyflixProvider.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Bollyflix/build.gradle.kts b/Bollyflix/build.gradle.kts index 39aae97..2f4a43a 100644 --- a/Bollyflix/build.gradle.kts +++ b/Bollyflix/build.gradle.kts @@ -1,4 +1,4 @@ -version = 6 +version = 7 cloudstream { language = "hi" diff --git a/Bollyflix/src/main/kotlin/com/megix/BollyflixProvider.kt b/Bollyflix/src/main/kotlin/com/megix/BollyflixProvider.kt index 249589a..aced205 100644 --- a/Bollyflix/src/main/kotlin/com/megix/BollyflixProvider.kt +++ b/Bollyflix/src/main/kotlin/com/megix/BollyflixProvider.kt @@ -11,7 +11,7 @@ import com.google.gson.Gson import com.lagradost.cloudstream3.utils.AppUtils.parseJson class BollyflixProvider : MainAPI() { // all providers must be an instance of MainAPI - override var mainUrl = "https://bollyflix.date" + override var mainUrl = "https://bollyflix.ninja" override var name = "BollyFlix" override val hasMainPage = true override var lang = "hi" @@ -68,7 +68,7 @@ class BollyflixProvider : MainAPI() { // all providers must be an instance of Ma override suspend fun search(query: String): List { val searchResponse = mutableListOf() - for (i in 1..10) { + for (i in 1..6) { val document = app.get("$mainUrl/search/$query/page/$i/").document val results = document.select("div.post-cards > article").mapNotNull { it.toSearchResult() }