From d80c1dc0bd8602ecae4685759f46c2aade529b2b Mon Sep 17 00:00:00 2001 From: Riztard Lanthorn Date: Tue, 20 Oct 2020 20:26:04 +0700 Subject: [PATCH] fix Ngomik manga detail (#4648) some chapter didnt show author and status properly --- src/id/ngomik/build.gradle | 2 +- .../src/eu/kanade/tachiyomi/extension/id/ngomik/Ngomik.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/id/ngomik/build.gradle b/src/id/ngomik/build.gradle index 5e8e67675..003d7283b 100644 --- a/src/id/ngomik/build.gradle +++ b/src/id/ngomik/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'Ngomik' pkgNameSuffix = 'id.ngomik' extClass = '.Ngomik' - extVersionCode = 2 + extVersionCode = 3 libVersion = '1.2' } diff --git a/src/id/ngomik/src/eu/kanade/tachiyomi/extension/id/ngomik/Ngomik.kt b/src/id/ngomik/src/eu/kanade/tachiyomi/extension/id/ngomik/Ngomik.kt index 69a7d93fa..a8e016fd5 100644 --- a/src/id/ngomik/src/eu/kanade/tachiyomi/extension/id/ngomik/Ngomik.kt +++ b/src/id/ngomik/src/eu/kanade/tachiyomi/extension/id/ngomik/Ngomik.kt @@ -64,10 +64,10 @@ class Ngomik : ParsedHttpSource() { override fun mangaDetailsParse(document: Document) = SManga.create().apply { title = document.select("h1[itemprop=headline]").text() - author = document.select("div.listinfo li")[2].text().removePrefix("Author: ") + author = document.select("div.listinfo li:contains(Author:)").text().removePrefix("Author: ") description = document.select(".desc").text() genre = document.select("div.gnr > a").joinToString { it.text() } - status = parseStatus(document.select("div.listinfo li")[3].text()) + status = parseStatus(document.select("div.listinfo li:contains(Status:)").text()) thumbnail_url = document.select("div[itemprop=image] > img").attr("src") }