MangaPark v3 Fix 3.0 (#7536)

* Update build.gradle

* Update MangaPark.kt

* Update MangaPark.kt

* Update MangaPark.kt
This commit is contained in:
FourTOne5 2021-06-08 22:02:03 +06:00 committed by GitHub
parent 5f117bffbd
commit 16f94ad314
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@ ext {
extName = 'MangaPark v3'
pkgNameSuffix = 'all.mangapark'
extClass = '.MangaParkFactory'
extVersionCode = 4
extVersionCode = 5
libVersion = '1.2'
containsNsfw = true
}

View File

@ -219,8 +219,8 @@ open class MangaPark(
}
override fun chapterListParse(response: Response): List<SChapter> {
val resTojson = json.parseToJsonElement(response.toString()).jsonObject
val document = Jsoup.parse(resTojson["html"]!!.toString())
val resToJson = json.parseToJsonElement(response.body!!.string()).jsonObject
val document = Jsoup.parse(resToJson["html"]!!.jsonPrimitive.content)
return document.select(chapterListSelector()).map { chapterFromElement(it) }
}