Merged with dark25 (#636)

* merge

merged lib, lib-multisrc, all, ar, de, en, es, fr, hi, id, it, pt, tr src from dark25

* patch
This commit is contained in:
Hak 2025-02-10 15:41:59 +07:00 committed by GitHub
parent 9f385108fc
commit 1384df62f3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
350 changed files with 12176 additions and 1064 deletions

View file

@ -1,7 +1,7 @@
ext {
extName = 'MundoDonghua'
extClass = '.MundoDonghua'
extVersionCode = 24
extVersionCode = 27
}
apply from: "$rootDir/common.gradle"

View file

@ -164,7 +164,7 @@ class MundoDonghua : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
}
}
}
return videoList
return videoList.sort()
}
override fun videoListSelector() = throw UnsupportedOperationException()

View file

@ -18,14 +18,14 @@ class ProteaExtractor() {
val videoList = mutableListOf<Video>()
runCatching {
val document = Jsoup.connect(url).headers(headers.toMap()).ignoreContentType(true).method(Connection.Method.POST).execute()
if (document!!.body()!!.isNotEmpty()) {
if (document.body().isNotEmpty()) {
val responseString = document.body().removePrefix("[").removeSuffix("]")
val jObject = json.decodeFromString<JsonObject>(responseString)
val sources = jObject["source"]!!.jsonArray
sources!!.forEach { source ->
var item = source!!.jsonObject
sources.forEach { source ->
var item = source.jsonObject
var quality = "$qualityPrefix:${ item["label"]!!.jsonPrimitive.content }"
var urlVideo = item["file"]!!.jsonPrimitive!!.content.removePrefix("//")
var urlVideo = item["file"]!!.jsonPrimitive.content.removePrefix("//")
var newHeaders = Headers.Builder()
.set("authority", "www.nemonicplayer.xyz")
.set("accept", "*/*")