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:
parent
aa98af8907
commit
fdf2fa50ee
|
@ -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"
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue