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 {
|
ext {
|
||||||
extName = "HentaiNexus"
|
extName = "HentaiNexus"
|
||||||
extClass = ".HentaiNexus"
|
extClass = ".HentaiNexus"
|
||||||
extVersionCode = 7
|
extVersionCode = 8
|
||||||
isNsfw = true
|
isNsfw = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -146,9 +146,9 @@ class HentaiNexus : ParsedHttpSource() {
|
|||||||
val encoded = script.substringAfter("initReader(\"").substringBefore("\",")
|
val encoded = script.substringAfter("initReader(\"").substringBefore("\",")
|
||||||
val data = HentaiNexusUtils.decryptData(encoded)
|
val data = HentaiNexusUtils.decryptData(encoded)
|
||||||
|
|
||||||
return json.parseToJsonElement(data).jsonArray.mapIndexed { i, it ->
|
return json.parseToJsonElement(data).jsonArray
|
||||||
Page(i, imageUrl = it.jsonObject["image"]!!.jsonPrimitive.content)
|
.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()
|
override fun imageUrlParse(document: Document) = throw UnsupportedOperationException()
|
||||||
|
Loading…
Reference in New Issue
Block a user