From fdf2fa50ee1d5ef38a58589971691dc87b2868fd Mon Sep 17 00:00:00 2001 From: Doomsdayrs <38189170+Doomsdayrs@users.noreply.github.com> Date: Tue, 28 Dec 2021 04:23:58 -0500 Subject: [PATCH] Remove manga name from chapter title in Mangahasu.kt (#10258) Manga names can get awfully long, leading to chapter titles being so absurdly long that you do not know what you are reading. This commit simply removes 'span.manga-name' from the urlElement before extracting the text from it. --- src/en/mangahasu/build.gradle | 2 +- .../src/eu/kanade/tachiyomi/extension/en/mangahasu/Mangahasu.kt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/en/mangahasu/build.gradle b/src/en/mangahasu/build.gradle index b0fa74e86..25d2ed5f1 100644 --- a/src/en/mangahasu/build.gradle +++ b/src/en/mangahasu/build.gradle @@ -6,7 +6,7 @@ ext { extName = 'Mangahasu' pkgNameSuffix = 'en.mangahasu' extClass = '.Mangahasu' - extVersionCode = 15 + extVersionCode = 16 } apply from: "$rootDir/common.gradle" diff --git a/src/en/mangahasu/src/eu/kanade/tachiyomi/extension/en/mangahasu/Mangahasu.kt b/src/en/mangahasu/src/eu/kanade/tachiyomi/extension/en/mangahasu/Mangahasu.kt index 1030cbe72..e338b29ef 100644 --- a/src/en/mangahasu/src/eu/kanade/tachiyomi/extension/en/mangahasu/Mangahasu.kt +++ b/src/en/mangahasu/src/eu/kanade/tachiyomi/extension/en/mangahasu/Mangahasu.kt @@ -148,6 +148,7 @@ class Mangahasu : ParsedHttpSource() { val urlElement = element.select("a").first() val chapter = SChapter.create() chapter.setUrlWithoutDomain(urlElement.attr("href")) + urlElement.select("span.name-manga").remove() chapter.name = urlElement.text() chapter.date_upload = element.select(".date-updated").last()?.text()?.let {