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:
parent
9f385108fc
commit
1384df62f3
350 changed files with 12176 additions and 1064 deletions
|
@ -1,7 +1,7 @@
|
|||
ext {
|
||||
extName = 'MundoDonghua'
|
||||
extClass = '.MundoDonghua'
|
||||
extVersionCode = 24
|
||||
extVersionCode = 27
|
||||
}
|
||||
|
||||
apply from: "$rootDir/common.gradle"
|
||||
|
|
|
@ -164,7 +164,7 @@ class MundoDonghua : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
|
|||
}
|
||||
}
|
||||
}
|
||||
return videoList
|
||||
return videoList.sort()
|
||||
}
|
||||
|
||||
override fun videoListSelector() = throw UnsupportedOperationException()
|
||||
|
|
|
@ -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", "*/*")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue