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:
parent
fe5d96f4c5
commit
38732723a6
@ -1,7 +1,7 @@
|
|||||||
ext {
|
ext {
|
||||||
extName = 'AnimeSama'
|
extName = 'AnimeSama'
|
||||||
extClass = '.AnimeSama'
|
extClass = '.AnimeSama'
|
||||||
extVersionCode = 8
|
extVersionCode = 9
|
||||||
}
|
}
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|||||||
@ -212,7 +212,7 @@ class AnimeSama : ParsedHttpSource() {
|
|||||||
private fun parseChapterFromResponse(response: Response, translationName: String): List<SChapter> {
|
private fun parseChapterFromResponse(response: Response, translationName: String): List<SChapter> {
|
||||||
val document = response.asJsoup()
|
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()
|
val chapterUrl = "$baseUrl/s2/scans/get_nb_chap_et_img.php".toHttpUrl()
|
||||||
.newBuilder()
|
.newBuilder()
|
||||||
.addQueryParameter("oeuvre", title)
|
.addQueryParameter("oeuvre", title)
|
||||||
@ -313,7 +313,7 @@ class AnimeSama : ParsedHttpSource() {
|
|||||||
override fun pageListParse(document: Document): List<Page> {
|
override fun pageListParse(document: Document): List<Page> {
|
||||||
val url = document.baseUri().toHttpUrl()
|
val url = document.baseUri().toHttpUrl()
|
||||||
|
|
||||||
val title = url.queryParameter("title")
|
val title = url.queryParameter("oeuvre")
|
||||||
val chapter = url.queryParameter("id")
|
val chapter = url.queryParameter("id")
|
||||||
|
|
||||||
val chapterUrl = "$baseUrl/s2/scans/get_nb_chap_et_img.php".toHttpUrl()
|
val chapterUrl = "$baseUrl/s2/scans/get_nb_chap_et_img.php".toHttpUrl()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user