From a81609fd2c80459185cefeadf7bce3a81cddb818 Mon Sep 17 00:00:00 2001 From: len Date: Sun, 25 Sep 2016 23:04:43 +0200 Subject: [PATCH] Fix #480 ? --- .../data/source/online/english/Kissmanga.kt | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/source/online/english/Kissmanga.kt b/app/src/main/java/eu/kanade/tachiyomi/data/source/online/english/Kissmanga.kt index 565cbefb0..4abe1e820 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/source/online/english/Kissmanga.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/source/online/english/Kissmanga.kt @@ -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") } }