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("authorArtist", "")
add("mangaName", query) add("mangaName", query)
add("status", "") add("status", "")
}
val filterIndexes = filters.map { it.id.toInt() } this@Kissmanga.filters.forEach { filter ->
val maxFilterIndex = filterIndexes.max() add("genres", if (filter in filters) "1" else "0")
if (maxFilterIndex !== null) {
for (i in 0..maxFilterIndex) {
form.add("genres", if (filterIndexes.contains(i)) {
"1"
} else {
"0"
})
} }
} }