Fix bug some comics have no title blogtruyen (#14562)
This commit is contained in:
parent
4480c0ad8f
commit
9a241c76ee
|
@ -5,7 +5,7 @@ ext {
|
|||
extName = 'BlogTruyen'
|
||||
pkgNameSuffix = 'vi.blogtruyen'
|
||||
extClass = '.BlogTruyen'
|
||||
extVersionCode = 10
|
||||
extVersionCode = 11
|
||||
}
|
||||
|
||||
apply from: "$rootDir/common.gradle"
|
||||
|
|
|
@ -142,8 +142,9 @@ class BlogTruyen : ParsedHttpSource() {
|
|||
|
||||
override fun mangaDetailsParse(document: Document): SManga {
|
||||
val infoElement = document.select("div.description").first()
|
||||
|
||||
val title = document.select(".entry-title").first()
|
||||
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.genre = infoElement.select("span.category a").joinToString { it.text() }
|
||||
manga.description = document.select("div.detail > div.content").text()
|
||||
|
|
Loading…
Reference in New Issue