ScanManga: fix searching with special characters (#6321)
* ScanManga: fix searching with special characters * ScanManga: bump extVersionCode
This commit is contained in:
parent
5f02971aaa
commit
420a806b89
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue