From 2154e3aa2dbf5b3056b00bd8665aa0383e498fde Mon Sep 17 00:00:00 2001 From: arkon Date: Sun, 22 Nov 2020 16:40:53 -0500 Subject: [PATCH] Remove 10 results per source limit from global search (still limited to 1 page) --- .../ui/browse/source/globalsearch/GlobalSearchPresenter.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/globalsearch/GlobalSearchPresenter.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/globalsearch/GlobalSearchPresenter.kt index 7042dcb578..a8f756b85b 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/globalsearch/GlobalSearchPresenter.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/globalsearch/GlobalSearchPresenter.kt @@ -170,9 +170,9 @@ open class GlobalSearchPresenter( Observable.defer { source.fetchSearchManga(1, query, FilterList()) } .subscribeOn(Schedulers.io()) .onErrorReturn { MangasPage(emptyList(), false) } // Ignore timeouts or other exceptions - .map { it.mangas.take(10) } // Get at most 10 manga from search result. - .map { list -> list.map { networkToLocalManga(it, source.id) } } // Convert to local manga. - .doOnNext { fetchImage(it, source) } // Load manga covers. + .map { it.mangas } + .map { list -> list.map { networkToLocalManga(it, source.id) } } // Convert to local manga + .doOnNext { fetchImage(it, source) } // Load manga covers .map { list -> createCatalogueSearchItem(source, list.map { GlobalSearchCardItem(it) }) } }, 5