mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-05 01:15:14 +01:00
Fix #480 ?
This commit is contained in:
parent
bf05952582
commit
a81609fd2c
@ -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 New Issue
Block a user