diff --git a/src/all/nhentai/build.gradle b/src/all/nhentai/build.gradle index cd525fa5c..1852c4cd6 100644 --- a/src/all/nhentai/build.gradle +++ b/src/all/nhentai/build.gradle @@ -1,7 +1,7 @@ ext { extName = 'NHentai' extClass = '.NHFactory' - extVersionCode = 44 + extVersionCode = 45 isNsfw = true } 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 d5dc59a22..22c0ccbd0 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 @@ -152,7 +152,9 @@ open class NHentai( return GET(url.build(), headers) } else { val url = "$baseUrl/search/".toHttpUrl().newBuilder() - .addQueryParameter("q", "$query $nhLangSearch$advQuery") + // Blank query (Multi + sort by popular month/week/day) shows a 404 page + // Searching for `""` is a hacky way to return everything without any filtering + .addQueryParameter("q", "$query $nhLangSearch$advQuery".ifBlank { "\"\"" }) .addQueryParameter("page", offsetPage.toString()) if (isOkayToSort) {