parent
bcfc74ef31
commit
00f2eddb58
|
@ -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