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.
This commit is contained in:
Doomsdayrs 2021-12-28 04:23:58 -05:00 committed by GitHub
parent aa98af8907
commit fdf2fa50ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -6,7 +6,7 @@ ext {
extName = 'Mangahasu' extName = 'Mangahasu'
pkgNameSuffix = 'en.mangahasu' pkgNameSuffix = 'en.mangahasu'
extClass = '.Mangahasu' extClass = '.Mangahasu'
extVersionCode = 15 extVersionCode = 16
} }
apply from: "$rootDir/common.gradle" apply from: "$rootDir/common.gradle"

View File

@ -148,6 +148,7 @@ class Mangahasu : ParsedHttpSource() {
val urlElement = element.select("a").first() val urlElement = element.select("a").first()
val chapter = SChapter.create() val chapter = SChapter.create()
chapter.setUrlWithoutDomain(urlElement.attr("href")) chapter.setUrlWithoutDomain(urlElement.attr("href"))
urlElement.select("span.name-manga").remove()
chapter.name = urlElement.text() chapter.name = urlElement.text()
chapter.date_upload = element.select(".date-updated").last()?.text()?.let { chapter.date_upload = element.select(".date-updated").last()?.text()?.let {