TMOHentai - fix search (#3500)

This commit is contained in:
Mike 2020-06-12 04:22:10 -04:00 committed by GitHub
parent 1b1cc53782
commit db5ba4163f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
appName = 'Tachiyomi: TMOHentai'
pkgNameSuffix = 'es.tmohentai'
extClass = '.TMOHentai'
extVersionCode = 2
extVersionCode = 3
libVersion = '1.2'
}

View File

@ -85,7 +85,7 @@ class TMOHentai : ParsedHttpSource() {
url.addQueryParameter("search[searchText]", query)
url.addQueryParameter("page", page.toString())
filters.forEach { filter ->
(if (filters.isEmpty()) getFilterList() else filters).forEach { filter ->
when (filter) {
is Types -> {
url.addQueryParameter("type", filter.toUriPart())