mini: update

This commit is contained in:
hexated 2023-07-05 10:04:20 +07:00
parent 1bb35109f1
commit eff0f36919
2 changed files with 10 additions and 4 deletions

View file

@ -1,5 +1,5 @@
// use an integer for version numbers
version = 2
version = 3
cloudstream {

View file

@ -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)
)
)
}