Fix Comic Fury extension search functionality (#18770)

* Fix ComicFury extension not using query parameter when searching

* Bump extVersionCode to 2 for comicfury
This commit is contained in:
alk 2023-10-29 01:32:27 +03:00 committed by GitHub
parent 3a5f8c9fd3
commit dea6e28e2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -6,7 +6,7 @@ ext {
extName = 'Comic Fury' extName = 'Comic Fury'
pkgNameSuffix = 'all.comicfury' pkgNameSuffix = 'all.comicfury'
extClass = '.ComicFuryFactory' extClass = '.ComicFuryFactory'
extVersionCode = 1 extVersionCode = 2
isNsfw = true isNsfw = true
} }

View File

@ -166,6 +166,7 @@ class ComicFury(
} }
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request { override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request {
val req: HttpUrl.Builder = "$baseUrl/search.php".toHttpUrl().newBuilder() val req: HttpUrl.Builder = "$baseUrl/search.php".toHttpUrl().newBuilder()
req.addQueryParameter("query", query)
req.addQueryParameter("page", page.toString()) req.addQueryParameter("page", page.toString())
req.addQueryParameter("language", siteLang) req.addQueryParameter("language", siteLang)
filters.forEach { filters.forEach {