Mangahub - fix alt names and labels being appended to title (#3002)

Mangahub - fix title
This commit is contained in:
DragonDisk 2020-05-05 00:00:08 +10:00 committed by GitHub
parent 7680f3f676
commit 3a4bb5657d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
appName = 'Tachiyomi: Mangahub' appName = 'Tachiyomi: Mangahub'
pkgNameSuffix = 'en.mangahub' pkgNameSuffix = 'en.mangahub'
extClass = '.Mangahub' extClass = '.Mangahub'
extVersionCode = 5 extVersionCode = 6
libVersion = '1.2' libVersion = '1.2'
} }

View File

@ -72,7 +72,7 @@ class Mangahub : ParsedHttpSource() {
override fun mangaDetailsParse(document: Document): SManga { override fun mangaDetailsParse(document: Document): SManga {
val manga = SManga.create() val manga = SManga.create()
manga.title = document.select("h1._3xnDj").first().text() manga.title = document.select("h1._3xnDj").first().ownText()
manga.author = document.select("._3QCtP > div:nth-child(2) > div:nth-child(1) > span:nth-child(2)")?.first()?.text() manga.author = document.select("._3QCtP > div:nth-child(2) > div:nth-child(1) > span:nth-child(2)")?.first()?.text()
manga.artist = document.select("._3QCtP > div:nth-child(2) > div:nth-child(2) > span:nth-child(2)")?.first()?.text() manga.artist = document.select("._3QCtP > div:nth-child(2) > div:nth-child(2) > span:nth-child(2)")?.first()?.text()
manga.genre = document.select("._3Czbn a")?.joinToString { it.text() } manga.genre = document.select("._3Czbn a")?.joinToString { it.text() }