diff --git a/src/en/hentainexus/build.gradle b/src/en/hentainexus/build.gradle index 1a7e43c0b..da35f5b87 100644 --- a/src/en/hentainexus/build.gradle +++ b/src/en/hentainexus/build.gradle @@ -1,7 +1,7 @@ ext { extName = "HentaiNexus" extClass = ".HentaiNexus" - extVersionCode = 7 + extVersionCode = 8 isNsfw = true } diff --git a/src/en/hentainexus/src/eu/kanade/tachiyomi/extension/en/hentainexus/HentaiNexus.kt b/src/en/hentainexus/src/eu/kanade/tachiyomi/extension/en/hentainexus/HentaiNexus.kt index 6d83783a4..efd105294 100644 --- a/src/en/hentainexus/src/eu/kanade/tachiyomi/extension/en/hentainexus/HentaiNexus.kt +++ b/src/en/hentainexus/src/eu/kanade/tachiyomi/extension/en/hentainexus/HentaiNexus.kt @@ -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()