mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
[Sora] filter low res from Gmovies & Fdmovies
This commit is contained in:
parent
8c0e2313cc
commit
d9772ce517
1 changed files with 7 additions and 2 deletions
|
@ -1349,7 +1349,12 @@ object SoraExtractor : SoraStream() {
|
||||||
}?.select("div.wp-block-button")?.map {
|
}?.select("div.wp-block-button")?.map {
|
||||||
it.select("a").attr("href") to it.text()
|
it.select("a").attr("href") to it.text()
|
||||||
}
|
}
|
||||||
})?.filter { it.first.contains("gdtot") } ?: return
|
})?.filter {
|
||||||
|
it.first.contains("gdtot") && (it.second.contains(
|
||||||
|
"1080p",
|
||||||
|
true
|
||||||
|
) || it.second.contains("4k", true))
|
||||||
|
} ?: return
|
||||||
|
|
||||||
iframe.apmap { (iframeLink, title) ->
|
iframe.apmap { (iframeLink, title) ->
|
||||||
val size = Regex("(?i)\\s(\\S+gb|mb)").find(title)?.groupValues?.getOrNull(1)
|
val size = Regex("(?i)\\s(\\S+gb|mb)").find(title)?.groupValues?.getOrNull(1)
|
||||||
|
@ -1392,7 +1397,7 @@ object SoraExtractor : SoraStream() {
|
||||||
it.select("strong.quality").text(),
|
it.select("strong.quality").text(),
|
||||||
it.select("td:nth-child(4)").text()
|
it.select("td:nth-child(4)").text()
|
||||||
)
|
)
|
||||||
}
|
}.filter { it.second.contains("1080p", true) || it.second.contains("4k", true) }
|
||||||
Log.i("fdMoviesAPI", "$iframe")
|
Log.i("fdMoviesAPI", "$iframe")
|
||||||
iframe.apmap { (link, quality, size) ->
|
iframe.apmap { (link, quality, size) ->
|
||||||
val fdLink = bypassFdAds(link)
|
val fdLink = bypassFdAds(link)
|
||||||
|
|
Loading…
Reference in a new issue