SayHentai: Fix filtering by genre (#435)

This commit is contained in:
beerpsi 2024-01-21 11:54:38 +07:00 committed by Draff
parent 5fa08faf08
commit 1549a6ad52
2 changed files with 2 additions and 5 deletions

View File

@ -1,7 +1,7 @@
ext {
extName = "SayHentai"
extClass = ".SayHentai"
extVersionCode = 1
extVersionCode = 2
isNsfw = true
}

View File

@ -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 -> {}
}
}