mirror of
https://github.com/keiyoushi/extensions-source.git
synced 2024-11-22 10:22:47 +01:00
parent
32c4a69174
commit
558ce75c34
@ -1,7 +1,7 @@
|
||||
ext {
|
||||
extName = "HentaiNexus"
|
||||
extClass = ".HentaiNexus"
|
||||
extVersionCode = 7
|
||||
extVersionCode = 8
|
||||
isNsfw = true
|
||||
}
|
||||
|
||||
|
@ -146,9 +146,9 @@ class HentaiNexus : ParsedHttpSource() {
|
||||
val encoded = script.substringAfter("initReader(\"").substringBefore("\",")
|
||||
val data = HentaiNexusUtils.decryptData(encoded)
|
||||
|
||||
return json.parseToJsonElement(data).jsonArray.mapIndexed { i, it ->
|
||||
Page(i, imageUrl = it.jsonObject["image"]!!.jsonPrimitive.content)
|
||||
}
|
||||
return json.parseToJsonElement(data).jsonArray
|
||||
.filter { it.jsonObject["type"]!!.jsonPrimitive.content == "image" }
|
||||
.mapIndexed { i, it -> Page(i, imageUrl = it.jsonObject["image"]!!.jsonPrimitive.content) }
|
||||
}
|
||||
|
||||
override fun imageUrlParse(document: Document) = throw UnsupportedOperationException()
|
||||
|
Loading…
Reference in New Issue
Block a user