From 91bf6734d46327a08237b274cfa804b780cc2541 Mon Sep 17 00:00:00 2001 From: Clarence Castillo Date: Wed, 6 Jan 2021 11:11:39 +0800 Subject: [PATCH] Fix empty filters when searching with query string (#5328) --- src/ar/gmanga/build.gradle | 2 +- .../src/eu/kanade/tachiyomi/extension/ar/gmanga/Gmanga.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ar/gmanga/build.gradle b/src/ar/gmanga/build.gradle index fa9df6586..b1ec67f65 100644 --- a/src/ar/gmanga/build.gradle +++ b/src/ar/gmanga/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'GMANGA' pkgNameSuffix = 'ar.gmanga' extClass = '.Gmanga' - extVersionCode = 1 + extVersionCode = 2 libVersion = '1.2' containsNsfw = false } diff --git a/src/ar/gmanga/src/eu/kanade/tachiyomi/extension/ar/gmanga/Gmanga.kt b/src/ar/gmanga/src/eu/kanade/tachiyomi/extension/ar/gmanga/Gmanga.kt index 8e821b1c9..a3b900e76 100644 --- a/src/ar/gmanga/src/eu/kanade/tachiyomi/extension/ar/gmanga/Gmanga.kt +++ b/src/ar/gmanga/src/eu/kanade/tachiyomi/extension/ar/gmanga/Gmanga.kt @@ -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) }