ScanManga: fix searching with special characters (#6321)

* ScanManga: fix searching with special characters

* ScanManga: bump extVersionCode
This commit is contained in:
Julien Papasian 2021-03-28 12:10:57 +01:00 committed by GitHub
parent 5f02971aaa
commit 420a806b89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'Scan-Manga' extName = 'Scan-Manga'
pkgNameSuffix = 'fr.scanmanga' pkgNameSuffix = 'fr.scanmanga'
extClass = '.ScanManga' extClass = '.ScanManga'
extVersionCode = 1 extVersionCode = 2
libVersion = '1.2' libVersion = '1.2'
containsNsfw = true containsNsfw = true
} }

View File

@ -106,7 +106,7 @@ class ScanManga : ParsedHttpSource() {
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request { override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request {
val searchHeaders = headersBuilder().apply { val searchHeaders = headersBuilder().apply {
add("Referer", "$baseUrl/scanlation/liste_series.html?q=$query") add("Referer", "$baseUrl/scanlation/liste_series.html")
add("x-requested-with", "XMLHttpRequest") add("x-requested-with", "XMLHttpRequest")
}.build() }.build()
return GET("$baseUrl/scanlation/scan.data.json", searchHeaders) return GET("$baseUrl/scanlation/scan.data.json", searchHeaders)