From 1549a6ad529e4c49ad08931357fcc6853f6c32b7 Mon Sep 17 00:00:00 2001 From: beerpsi <92439990+beerpiss@users.noreply.github.com> Date: Sun, 21 Jan 2024 11:54:38 +0700 Subject: [PATCH] SayHentai: Fix filtering by genre (#435) --- src/vi/sayhentai/build.gradle | 2 +- .../eu/kanade/tachiyomi/extension/vi/sayhentai/SayHentai.kt | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/vi/sayhentai/build.gradle b/src/vi/sayhentai/build.gradle index 13a67cdd4..fbb0c5d09 100644 --- a/src/vi/sayhentai/build.gradle +++ b/src/vi/sayhentai/build.gradle @@ -1,7 +1,7 @@ ext { extName = "SayHentai" extClass = ".SayHentai" - extVersionCode = 1 + extVersionCode = 2 isNsfw = true } diff --git a/src/vi/sayhentai/src/eu/kanade/tachiyomi/extension/vi/sayhentai/SayHentai.kt b/src/vi/sayhentai/src/eu/kanade/tachiyomi/extension/vi/sayhentai/SayHentai.kt index ca87cd674..ae5117162 100644 --- a/src/vi/sayhentai/src/eu/kanade/tachiyomi/extension/vi/sayhentai/SayHentai.kt +++ b/src/vi/sayhentai/src/eu/kanade/tachiyomi/extension/vi/sayhentai/SayHentai.kt @@ -58,10 +58,7 @@ class SayHentai : ParsedHttpSource() { } else { (if (filters.isEmpty()) getFilterList() else filters).forEach { when (it) { - is GenreList -> { - val genre = it.values[it.state] - addPathSegment(genre.path) - } + is GenreList -> addPathSegments(it.values[it.state].path) else -> {} } }