[NHentai] Fix language filter (#4642)

* [NHentai] Fix language filter

* Update build.gradle
This commit is contained in:
子斗子 2024-08-17 12:53:54 +08:00 committed by Draff
parent 779155707a
commit 231197b43c
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
ext {
extName = 'NHentai'
extClass = '.NHFactory'
extVersionCode = 42
extVersionCode = 43
isNsfw = true
}

View File

@ -138,7 +138,7 @@ open class NHentai(
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request {
val fixedQuery = query.ifEmpty { "\"\"" }
val filterList = if (filters.isEmpty()) getFilterList() else filters
val nhLangSearch = if (nhLang.isBlank()) "" else "+$nhLang "
val nhLangSearch = if (nhLang.isBlank()) "" else "+language:$nhLang "
val advQuery = combineQuery(filterList)
val favoriteFilter = filterList.findInstance<FavoriteFilter>()
val isOkayToSort = filterList.findInstance<UploadedFilter>()?.state?.isBlank() ?: true