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 { ext {
extName = "SayHentai" extName = "SayHentai"
extClass = ".SayHentai" extClass = ".SayHentai"
extVersionCode = 1 extVersionCode = 2
isNsfw = true isNsfw = true
} }

View File

@ -58,10 +58,7 @@ class SayHentai : ParsedHttpSource() {
} else { } else {
(if (filters.isEmpty()) getFilterList() else filters).forEach { (if (filters.isEmpty()) getFilterList() else filters).forEach {
when (it) { when (it) {
is GenreList -> { is GenreList -> addPathSegments(it.values[it.state].path)
val genre = it.values[it.state]
addPathSegment(genre.path)
}
else -> {} else -> {}
} }
} }