From b56dbea6e7b67ed09a274f6ba196fc4e490426b1 Mon Sep 17 00:00:00 2001 From: Lazycoder Date: Tue, 20 Sep 2022 21:48:38 +0200 Subject: [PATCH] added new source(voe) --- .../src/main/kotlin/com/fushaar/FushaarProvider.kt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/FushaarProvider/src/main/kotlin/com/fushaar/FushaarProvider.kt b/FushaarProvider/src/main/kotlin/com/fushaar/FushaarProvider.kt index 0073a4c..0c8747d 100644 --- a/FushaarProvider/src/main/kotlin/com/fushaar/FushaarProvider.kt +++ b/FushaarProvider/src/main/kotlin/com/fushaar/FushaarProvider.kt @@ -4,6 +4,8 @@ import com.lagradost.cloudstream3.* import com.lagradost.cloudstream3.LoadResponse.Companion.addTrailer import com.lagradost.cloudstream3.utils.ExtractorLink import com.lagradost.cloudstream3.utils.Qualities +import com.lagradost.cloudstream3.utils.getQualityFromName +import com.lagradost.cloudstream3.utils.loadExtractor import org.jsoup.nodes.Element class Fushaar : MainAPI() { @@ -116,8 +118,10 @@ class Fushaar : MainAPI() { subtitleCallback: (SubtitleFile) -> Unit, callback: (ExtractorLink) -> Unit ): Boolean { - app.get(data).document - .select("#fancyboxID-download > center > a:nth-child(n+19),#fancyboxID-1 > center > a:nth-child(n+16)").map { + val doc = app.get(data).document + var sourceUrl = doc.select("div:nth-child(10) > a").attr("href") + loadExtractor(sourceUrl, data, subtitleCallback, callback) + doc.select("#fancyboxID-download > center > a:nth-child(n+19),#fancyboxID-1 > center > a:nth-child(n+16)").map { callback.invoke( ExtractorLink( source = this.name,