AnimeSama - Fix manga with trailing spaces (#10986)

* Update build.gradle

* Update AnimeSama.kt Fix mangas with trailing space

Fix mangas with trailing spaces that brakes listing and downloads (ex Tower of God)
This commit is contained in:
Yakoo 2025-10-11 04:54:57 +02:00 committed by Draff
parent fe5d96f4c5
commit 38732723a6
Signed by: Draff
GPG Key ID: E8A89F3211677653
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
ext {
extName = 'AnimeSama'
extClass = '.AnimeSama'
extVersionCode = 8
extVersionCode = 9
}
apply from: "$rootDir/common.gradle"

View File

@ -212,7 +212,7 @@ class AnimeSama : ParsedHttpSource() {
private fun parseChapterFromResponse(response: Response, translationName: String): List<SChapter> {
val document = response.asJsoup()
val title = document.select("#titreOeuvre").text()
val title = document.select("#titreOeuvre").textNodes()[0]?.wholeText
val chapterUrl = "$baseUrl/s2/scans/get_nb_chap_et_img.php".toHttpUrl()
.newBuilder()
.addQueryParameter("oeuvre", title)
@ -313,7 +313,7 @@ class AnimeSama : ParsedHttpSource() {
override fun pageListParse(document: Document): List<Page> {
val url = document.baseUri().toHttpUrl()
val title = url.queryParameter("title")
val title = url.queryParameter("oeuvre")
val chapter = url.queryParameter("id")
val chapterUrl = "$baseUrl/s2/scans/get_nb_chap_et_img.php".toHttpUrl()