This commit is contained in:
len 2016-09-25 23:04:43 +02:00
parent bf05952582
commit a81609fd2c

View File

@ -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")
}
}