fix Mangashiro manga details (#4659)

This commit is contained in:
Riztard Lanthorn 2020-10-21 20:33:02 +07:00 committed by GitHub
parent 8dbf19c602
commit 469f065d7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 4 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'Mangashiro'
pkgNameSuffix = 'id.mangashiro'
extClass = '.Mangashiro'
extVersionCode = 4
extVersionCode = 5
libVersion = '1.2'
}

View File

@ -91,10 +91,9 @@ class Mangashiro : ParsedHttpSource() {
override fun mangaDetailsParse(document: Document): SManga {
val infoElement = document.select("div.spe").first()
val descElement = document.select(".infox > div.desc").first()
val sepName = infoElement.select(".spe > span:nth-child(3)").last()
val manga = SManga.create()
manga.author = sepName.ownText()
manga.artist = sepName.ownText()
manga.author = document.select("div.spe span:contains(Author:)").firstOrNull()?.ownText()
manga.artist = manga.author
val genres = mutableListOf<String>()
infoElement.select(".spe > span:nth-child(1) > a").forEach { element ->
val genre = element.text()