From 3a4bb5657daa5c273c18dd6a0efae38bcbf6b7c0 Mon Sep 17 00:00:00 2001 From: DragonDisk Date: Tue, 5 May 2020 00:00:08 +1000 Subject: [PATCH] Mangahub - fix alt names and labels being appended to title (#3002) Mangahub - fix title --- src/en/mangahub/build.gradle | 2 +- .../src/eu/kanade/tachiyomi/extension/en/mangahub/Mangahub.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/en/mangahub/build.gradle b/src/en/mangahub/build.gradle index 63f755eff..65d0fde21 100644 --- a/src/en/mangahub/build.gradle +++ b/src/en/mangahub/build.gradle @@ -5,7 +5,7 @@ ext { appName = 'Tachiyomi: Mangahub' pkgNameSuffix = 'en.mangahub' extClass = '.Mangahub' - extVersionCode = 5 + extVersionCode = 6 libVersion = '1.2' } diff --git a/src/en/mangahub/src/eu/kanade/tachiyomi/extension/en/mangahub/Mangahub.kt b/src/en/mangahub/src/eu/kanade/tachiyomi/extension/en/mangahub/Mangahub.kt index 8ac8fe266..c8f25490c 100644 --- a/src/en/mangahub/src/eu/kanade/tachiyomi/extension/en/mangahub/Mangahub.kt +++ b/src/en/mangahub/src/eu/kanade/tachiyomi/extension/en/mangahub/Mangahub.kt @@ -72,7 +72,7 @@ class Mangahub : ParsedHttpSource() { override fun mangaDetailsParse(document: Document): SManga { 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.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() }