mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-20 19:09:17 +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("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"
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user