mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
fix duplicate links
This commit is contained in:
parent
47de7ed864
commit
e0925cfded
1 changed files with 1 additions and 1 deletions
|
@ -174,7 +174,7 @@ class AkwamProvider : MainAPI() {
|
||||||
|
|
||||||
val links = doc.select("div.tab-content.quality").map {
|
val links = doc.select("div.tab-content.quality").map {
|
||||||
val quality = getQualityFromId(it.attr("id").getIntFromText())
|
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
|
linkElement.attr("href") to quality
|
||||||
// Only uses the download links, primarily to prevent unnecessary duplicate requests.
|
// Only uses the download links, primarily to prevent unnecessary duplicate requests.
|
||||||
}.filter { link -> link.first.contains("/link/") }
|
}.filter { link -> link.first.contains("/link/") }
|
||||||
|
|
Loading…
Reference in a new issue