mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
fix oplovers
This commit is contained in:
parent
8ddb331d72
commit
a5584f5941
2 changed files with 3 additions and 4 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -10,3 +10,4 @@
|
||||||
.cxx
|
.cxx
|
||||||
local.properties
|
local.properties
|
||||||
.vscode
|
.vscode
|
||||||
|
/ExampleProvider/
|
||||||
|
|
|
@ -9,7 +9,6 @@ import com.lagradost.cloudstream3.extractors.Filesim
|
||||||
import com.lagradost.cloudstream3.utils.*
|
import com.lagradost.cloudstream3.utils.*
|
||||||
import org.jsoup.Jsoup
|
import org.jsoup.Jsoup
|
||||||
import org.jsoup.nodes.Element
|
import org.jsoup.nodes.Element
|
||||||
import java.net.URI
|
|
||||||
import java.util.ArrayList
|
import java.util.ArrayList
|
||||||
|
|
||||||
class OploverzProvider : MainAPI() {
|
class OploverzProvider : MainAPI() {
|
||||||
|
@ -209,9 +208,8 @@ class OploverzProvider : MainAPI() {
|
||||||
sources.filter { it.second.startsWith("https") }.
|
sources.filter { it.second.startsWith("https") }.
|
||||||
apmap { (quality, source) ->
|
apmap { (quality, source) ->
|
||||||
val video = fixedIframe(source)
|
val video = fixedIframe(source)
|
||||||
val path = URI(video).path
|
|
||||||
val videoQuality = getQualityFromName(quality)
|
val videoQuality = getQualityFromName(quality)
|
||||||
if(path.endsWith(".mp4") || path.endsWith(".mkv")) {
|
if(video.endsWith(".mp4") || video.endsWith(".mkv")) {
|
||||||
callback.invoke(
|
callback.invoke(
|
||||||
ExtractorLink(
|
ExtractorLink(
|
||||||
"Direct",
|
"Direct",
|
||||||
|
|
Loading…
Reference in a new issue