mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-09-10 20:23:18 +02:00
Search for local manga by searching "local"
This commit is contained in:
parent
ad8c69aa15
commit
5587080c95
@ -69,8 +69,10 @@ class LibraryItem(val manga: LibraryManga, private val libraryAsList: Preference
|
|||||||
*/
|
*/
|
||||||
override fun filter(constraint: String): Boolean {
|
override fun filter(constraint: String): Boolean {
|
||||||
val sourceManager by injectLazy<SourceManager>()
|
val sourceManager by injectLazy<SourceManager>()
|
||||||
val sourceName = sourceManager.getOrStub(manga.source).name
|
val sourceName = if (manga.source == 0L) "Local" else
|
||||||
return manga.title.contains(constraint, true) ||
|
sourceManager.getOrStub(manga.source).name
|
||||||
|
return manga.currentTitle().contains(constraint, true) ||
|
||||||
|
manga.originalTitle().contains(constraint, true) ||
|
||||||
(manga.currentAuthor()?.contains(constraint, true) ?: false) ||
|
(manga.currentAuthor()?.contains(constraint, true) ?: false) ||
|
||||||
(manga.currentArtist()?.contains(constraint, true) ?: false) ||
|
(manga.currentArtist()?.contains(constraint, true) ?: false) ||
|
||||||
sourceName.contains(constraint, true) ||
|
sourceName.contains(constraint, true) ||
|
||||||
|
Loading…
Reference in New Issue
Block a user