tachiyomi/app/src
curche 7e3ea9074c
Extend library search by adding -<source> option (#5387)
* extend library search to enable -<source> search

library search already allows for <source> search to select manga from a
particular source. Similarly, -<source> allows to search for manga that
aren't from the said source. TachiyomiSy has this feature but it heavily
depends on exh methods

A problem when you directly add a negation check is that although
it will work, the genre search kicks in adds back every manga since
-<source> returns true for all genres of a manga

Thus, the solution I decided on was do source search first, and then
move to genre check when it fails. A perhaps useful addition is that,
now you're able to search like this:
 <genre1>, -<source>, -<genre2>

* make if-else statements more readable

* refactor containsSourceOrGenre() using `when`

* add comment describing the function

* remove lazy

not really required anymore now that containsSourceOrGenre was rewritten
using `when`
2021-06-28 11:32:03 -04:00
..
debug/res Remove unnecessary fillType attrs from app icons 2021-05-22 17:37:14 -04:00
main Extend library search by adding -<source> option (#5387) 2021-06-28 11:32:03 -04:00
standard Move google-services.json 2020-04-29 23:07:32 -04:00
test/java/eu/kanade/tachiyomi Legacy backup conversion to Kotlin Serialization (#5282) 2021-06-04 18:50:22 -04:00