From e0925cfded9aa57c2b276c5e159f1e00cb49cb8a Mon Sep 17 00:00:00 2001 From: Blatzar <46196380+Blatzar@users.noreply.github.com> Date: Tue, 25 Jan 2022 17:02:51 +0100 Subject: [PATCH] fix duplicate links --- .../com/lagradost/cloudstream3/movieproviders/AkwamProvider.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/lagradost/cloudstream3/movieproviders/AkwamProvider.kt b/app/src/main/java/com/lagradost/cloudstream3/movieproviders/AkwamProvider.kt index 0f5ab444..006b4b68 100644 --- a/app/src/main/java/com/lagradost/cloudstream3/movieproviders/AkwamProvider.kt +++ b/app/src/main/java/com/lagradost/cloudstream3/movieproviders/AkwamProvider.kt @@ -174,7 +174,7 @@ class AkwamProvider : MainAPI() { val links = doc.select("div.tab-content.quality").map { val quality = getQualityFromId(it.attr("id").getIntFromText()) - doc.select(".col-lg-6 > a").map { linkElement -> + it.select(".col-lg-6 > a").map { linkElement -> linkElement.attr("href") to quality // Only uses the download links, primarily to prevent unnecessary duplicate requests. }.filter { link -> link.first.contains("/link/") }