mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
oploverz: updated sources
This commit is contained in:
parent
78c4b58edf
commit
283b0c3151
2 changed files with 26 additions and 10 deletions
|
@ -1,5 +1,5 @@
|
||||||
// use an integer for version numbers
|
// use an integer for version numbers
|
||||||
version = 13
|
version = 14
|
||||||
|
|
||||||
|
|
||||||
cloudstream {
|
cloudstream {
|
||||||
|
|
|
@ -9,6 +9,7 @@ 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,14 +210,28 @@ class OploverzProvider : MainAPI() {
|
||||||
|
|
||||||
sources.filter { it.second.startsWith("https") }.
|
sources.filter { it.second.startsWith("https") }.
|
||||||
apmap { (quality, source) ->
|
apmap { (quality, source) ->
|
||||||
loadExtractor(fixedIframe(source), data, subtitleCallback) { link ->
|
val video = fixedIframe(source)
|
||||||
|
val path = URI(video).path
|
||||||
|
val videoQuality = getQualityFromName(quality)
|
||||||
|
if(path.endsWith(".mp4") || path.endsWith(".mkv")) {
|
||||||
|
callback.invoke(
|
||||||
|
ExtractorLink(
|
||||||
|
"Direct",
|
||||||
|
"Direct",
|
||||||
|
video,
|
||||||
|
"",
|
||||||
|
videoQuality
|
||||||
|
)
|
||||||
|
)
|
||||||
|
} else {
|
||||||
|
loadExtractor(video, data, subtitleCallback) { link ->
|
||||||
callback.invoke(
|
callback.invoke(
|
||||||
ExtractorLink(
|
ExtractorLink(
|
||||||
link.name,
|
link.name,
|
||||||
link.name,
|
link.name,
|
||||||
link.url,
|
link.url,
|
||||||
link.referer,
|
link.referer,
|
||||||
getQualityFromName(quality),
|
videoQuality,
|
||||||
link.isM3u8,
|
link.isM3u8,
|
||||||
link.headers,
|
link.headers,
|
||||||
link.extractorData
|
link.extractorData
|
||||||
|
@ -224,6 +239,7 @@ class OploverzProvider : MainAPI() {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue