diff --git a/src/all/nhentai/build.gradle b/src/all/nhentai/build.gradle index 741b5b930..3faea6232 100644 --- a/src/all/nhentai/build.gradle +++ b/src/all/nhentai/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'NHentai' pkgNameSuffix = 'all.nhentai' extClass = '.NHFactory' - extVersionCode = 25 + extVersionCode = 26 libVersion = '1.2' } diff --git a/src/all/nhentai/src/eu/kanade/tachiyomi/extension/all/nhentai/NHentai.kt b/src/all/nhentai/src/eu/kanade/tachiyomi/extension/all/nhentai/NHentai.kt index 627992e1b..cf39d840f 100644 --- a/src/all/nhentai/src/eu/kanade/tachiyomi/extension/all/nhentai/NHentai.kt +++ b/src/all/nhentai/src/eu/kanade/tachiyomi/extension/all/nhentai/NHentai.kt @@ -167,7 +167,7 @@ open class NHentai( .addQueryParameter("q", "$query +$nhLang $advQuery") .addQueryParameter("page", page.toString()) - if (uploadedFilter!!.state.isBlank()) { + if (uploadedFilter?.state?.isBlank() == true) { filters.findInstance()?.let { f -> url.addQueryParameter("sort", f.toUriPart()) }