From 16f94ad314a243b220e3e637e75173f3e185146f Mon Sep 17 00:00:00 2001 From: FourTOne5 <59261191+FourTOne5@users.noreply.github.com> Date: Tue, 8 Jun 2021 22:02:03 +0600 Subject: [PATCH] MangaPark v3 Fix 3.0 (#7536) * Update build.gradle * Update MangaPark.kt * Update MangaPark.kt * Update MangaPark.kt --- src/all/mangapark/build.gradle | 2 +- .../eu/kanade/tachiyomi/extension/all/mangapark/MangaPark.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/all/mangapark/build.gradle b/src/all/mangapark/build.gradle index 0cfe7f417..83b727bc9 100644 --- a/src/all/mangapark/build.gradle +++ b/src/all/mangapark/build.gradle @@ -6,7 +6,7 @@ ext { extName = 'MangaPark v3' pkgNameSuffix = 'all.mangapark' extClass = '.MangaParkFactory' - extVersionCode = 4 + extVersionCode = 5 libVersion = '1.2' containsNsfw = true } diff --git a/src/all/mangapark/src/eu/kanade/tachiyomi/extension/all/mangapark/MangaPark.kt b/src/all/mangapark/src/eu/kanade/tachiyomi/extension/all/mangapark/MangaPark.kt index f5242850b..0409569a6 100644 --- a/src/all/mangapark/src/eu/kanade/tachiyomi/extension/all/mangapark/MangaPark.kt +++ b/src/all/mangapark/src/eu/kanade/tachiyomi/extension/all/mangapark/MangaPark.kt @@ -219,8 +219,8 @@ open class MangaPark( } override fun chapterListParse(response: Response): List { - 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) } }