fix Mangashiro manga details (#4659)
This commit is contained in:
parent
8dbf19c602
commit
469f065d7f
|
@ -5,7 +5,7 @@ ext {
|
||||||
extName = 'Mangashiro'
|
extName = 'Mangashiro'
|
||||||
pkgNameSuffix = 'id.mangashiro'
|
pkgNameSuffix = 'id.mangashiro'
|
||||||
extClass = '.Mangashiro'
|
extClass = '.Mangashiro'
|
||||||
extVersionCode = 4
|
extVersionCode = 5
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -91,10 +91,9 @@ class Mangashiro : ParsedHttpSource() {
|
||||||
override fun mangaDetailsParse(document: Document): SManga {
|
override fun mangaDetailsParse(document: Document): SManga {
|
||||||
val infoElement = document.select("div.spe").first()
|
val infoElement = document.select("div.spe").first()
|
||||||
val descElement = document.select(".infox > div.desc").first()
|
val descElement = document.select(".infox > div.desc").first()
|
||||||
val sepName = infoElement.select(".spe > span:nth-child(3)").last()
|
|
||||||
val manga = SManga.create()
|
val manga = SManga.create()
|
||||||
manga.author = sepName.ownText()
|
manga.author = document.select("div.spe span:contains(Author:)").firstOrNull()?.ownText()
|
||||||
manga.artist = sepName.ownText()
|
manga.artist = manga.author
|
||||||
val genres = mutableListOf<String>()
|
val genres = mutableListOf<String>()
|
||||||
infoElement.select(".spe > span:nth-child(1) > a").forEach { element ->
|
infoElement.select(".spe > span:nth-child(1) > a").forEach { element ->
|
||||||
val genre = element.text()
|
val genre = element.text()
|
||||||
|
|
Loading…
Reference in New Issue