Seearch by manga description in Library (#716)

This commit is contained in:
joseph619 2021-04-10 16:42:18 -04:00 committed by GitHub
parent 8199ce0412
commit db818f2e6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -153,6 +153,7 @@ class LibraryItem(
return manga.title.contains(constraint, true) ||
(manga.author?.contains(constraint, true) ?: false) ||
(manga.artist?.contains(constraint, true) ?: false) ||
(manga.description?.contains(constraint, true) ?: false) ||
sourceName.contains(constraint, true) ||
if (constraint.contains(",")) {
val genres = manga.genre?.split(", ")