mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-21 20:47:03 -05:00
Fix #480 ?
This commit is contained in:
parent
bf05952582
commit
a81609fd2c
1 changed files with 2 additions and 11 deletions
|
@ -51,18 +51,9 @@ class Kissmanga(context: Context, override val id: Int) : ParsedOnlineSource(con
|
|||
add("authorArtist", "")
|
||||
add("mangaName", query)
|
||||
add("status", "")
|
||||
}
|
||||
|
||||
val filterIndexes = filters.map { it.id.toInt() }
|
||||
val maxFilterIndex = filterIndexes.max()
|
||||
|
||||
if (maxFilterIndex !== null) {
|
||||
for (i in 0..maxFilterIndex) {
|
||||
form.add("genres", if (filterIndexes.contains(i)) {
|
||||
"1"
|
||||
} else {
|
||||
"0"
|
||||
})
|
||||
this@Kissmanga.filters.forEach { filter ->
|
||||
add("genres", if (filter in filters) "1" else "0")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue