Remove of redundant text in title "MangaDetailsParsed" (#15069)

This commit is contained in:
are-are-are 2023-01-22 19:30:30 +07:00 committed by GitHub
parent 8ae6bdca68
commit 1754456d2e
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 {
extName = 'HentaiVN'
pkgNameSuffix = 'vi.hentaivn'
extClass = '.HentaiVN'
extVersionCode = 20
extVersionCode = 21
isNsfw = true
}

View File

@ -103,7 +103,7 @@ class HentaiVN : ParsedHttpSource() {
override fun mangaDetailsParse(document: Document): SManga {
val infoElement = document.select(".main > .page-left > .left-info > .page-info")
val manga = SManga.create()
manga.title = infoElement.select("h1[itemprop=name] a").text()
manga.title = document.selectFirst(".breadcrumb2 li:last-child span").text()
manga.author = infoElement.select("p:contains(Tác giả:) a").text()
manga.description = infoElement.select(":root > p:contains(Nội dung:) + p").text()
manga.genre = infoElement.select("p:contains(Thể loại:) a").joinToString { it.text() }