Fix bug some comics have no title blogtruyen (#14562)

This commit is contained in:
are-are-are 2022-12-16 07:27:43 +07:00 committed by GitHub
parent 4480c0ad8f
commit 9a241c76ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'BlogTruyen' extName = 'BlogTruyen'
pkgNameSuffix = 'vi.blogtruyen' pkgNameSuffix = 'vi.blogtruyen'
extClass = '.BlogTruyen' extClass = '.BlogTruyen'
extVersionCode = 10 extVersionCode = 11
} }
apply from: "$rootDir/common.gradle" apply from: "$rootDir/common.gradle"

View File

@ -142,8 +142,9 @@ class BlogTruyen : ParsedHttpSource() {
override fun mangaDetailsParse(document: Document): SManga { override fun mangaDetailsParse(document: Document): SManga {
val infoElement = document.select("div.description").first() val infoElement = document.select("div.description").first()
val title = document.select(".entry-title").first()
val manga = SManga.create() val manga = SManga.create()
manga.title = title.select(".entry-title a").first().text()
manga.author = infoElement.select("p:contains(Tác giả) > a").first()?.text() manga.author = infoElement.select("p:contains(Tác giả) > a").first()?.text()
manga.genre = infoElement.select("span.category a").joinToString { it.text() } manga.genre = infoElement.select("span.category a").joinToString { it.text() }
manga.description = document.select("div.detail > div.content").text() manga.description = document.select("div.detail > div.content").text()