mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
mini: update
This commit is contained in:
parent
1bb35109f1
commit
eff0f36919
2 changed files with 10 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
// use an integer for version numbers
|
||||
version = 2
|
||||
version = 3
|
||||
|
||||
|
||||
cloudstream {
|
||||
|
|
|
@ -165,14 +165,20 @@ class Minioppai : MainAPI() {
|
|||
val sources = script.substringAfter("sources:[").substringBefore("]").replace("'", "\"")
|
||||
val subtitles = script.substringAfter("\"tracks\":[").substringBefore("]")
|
||||
|
||||
tryParseJson<List<Sources>>("[$sources]")?.map {
|
||||
tryParseJson<List<Sources>>("[$sources]")?.map { source ->
|
||||
val pStream = fixLink(source.file ?: return@map, paistream).takeIf {
|
||||
app.get(
|
||||
it,
|
||||
referer = "$paistream/"
|
||||
).isSuccessful
|
||||
}
|
||||
callback.invoke(
|
||||
ExtractorLink(
|
||||
server,
|
||||
server,
|
||||
fixLink(it.file ?: return@map, if(server == "Stream 1") libPaistream else paistream),
|
||||
pStream ?: fixLink(source.file ?: return@map, libPaistream),
|
||||
"$paistream/",
|
||||
getQualityFromName(it.label)
|
||||
getQualityFromName(source.label)
|
||||
)
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue