fix Ngomik manga detail (#4648)

some chapter didnt show author and status properly
This commit is contained in:
Riztard Lanthorn 2020-10-20 20:26:04 +07:00 committed by GitHub
parent 77b6397dfa
commit d80c1dc0bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'Ngomik'
pkgNameSuffix = 'id.ngomik'
extClass = '.Ngomik'
extVersionCode = 2
extVersionCode = 3
libVersion = '1.2'
}

View File

@ -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")
}