Fix empty filters when searching with query string (#5328)
This commit is contained in:
parent
86392bf6a9
commit
91bf6734d4
|
@ -5,7 +5,7 @@ ext {
|
|||
extName = 'GMANGA'
|
||||
pkgNameSuffix = 'ar.gmanga'
|
||||
extClass = '.Gmanga'
|
||||
extVersionCode = 1
|
||||
extVersionCode = 2
|
||||
libVersion = '1.2'
|
||||
containsNsfw = false
|
||||
}
|
||||
|
|
|
@ -166,7 +166,7 @@ class Gmanga : ConfigurableSource, HttpSource() {
|
|||
}
|
||||
|
||||
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request {
|
||||
return GmangaFilters.buildSearchPayload(page, query, filters).let {
|
||||
return GmangaFilters.buildSearchPayload(page, query, if (filters.isEmpty()) getFilterList() else filters).let {
|
||||
val body = RequestBody.create(MEDIA_TYPE, it.toString())
|
||||
POST("$baseUrl/api/mangas/search", headers, body)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue