From 9a241c76ee7f74e86a16541f6c5d1f97e13fdb02 Mon Sep 17 00:00:00 2001 From: are-are-are <62763969+dejavui@users.noreply.github.com> Date: Fri, 16 Dec 2022 07:27:43 +0700 Subject: [PATCH] Fix bug some comics have no title blogtruyen (#14562) --- src/vi/blogtruyen/build.gradle | 2 +- .../eu/kanade/tachiyomi/extension/vi/blogtruyen/BlogTruyen.kt | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/vi/blogtruyen/build.gradle b/src/vi/blogtruyen/build.gradle index 4eabbb53f..825e5c86f 100644 --- a/src/vi/blogtruyen/build.gradle +++ b/src/vi/blogtruyen/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'BlogTruyen' pkgNameSuffix = 'vi.blogtruyen' extClass = '.BlogTruyen' - extVersionCode = 10 + extVersionCode = 11 } apply from: "$rootDir/common.gradle" diff --git a/src/vi/blogtruyen/src/eu/kanade/tachiyomi/extension/vi/blogtruyen/BlogTruyen.kt b/src/vi/blogtruyen/src/eu/kanade/tachiyomi/extension/vi/blogtruyen/BlogTruyen.kt index 2f9c65a5e..7ca4c8ef6 100644 --- a/src/vi/blogtruyen/src/eu/kanade/tachiyomi/extension/vi/blogtruyen/BlogTruyen.kt +++ b/src/vi/blogtruyen/src/eu/kanade/tachiyomi/extension/vi/blogtruyen/BlogTruyen.kt @@ -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()