Remove 10 results per source limit from global search (still limited to 1 page)
This commit is contained in:
parent
56c19e57a9
commit
2154e3aa2d
@ -170,9 +170,9 @@ open class GlobalSearchPresenter(
|
|||||||
Observable.defer { source.fetchSearchManga(1, query, FilterList()) }
|
Observable.defer { source.fetchSearchManga(1, query, FilterList()) }
|
||||||
.subscribeOn(Schedulers.io())
|
.subscribeOn(Schedulers.io())
|
||||||
.onErrorReturn { MangasPage(emptyList(), false) } // Ignore timeouts or other exceptions
|
.onErrorReturn { MangasPage(emptyList(), false) } // Ignore timeouts or other exceptions
|
||||||
.map { it.mangas.take(10) } // Get at most 10 manga from search result.
|
.map { it.mangas }
|
||||||
.map { list -> list.map { networkToLocalManga(it, source.id) } } // Convert to local manga.
|
.map { list -> list.map { networkToLocalManga(it, source.id) } } // Convert to local manga
|
||||||
.doOnNext { fetchImage(it, source) } // Load manga covers.
|
.doOnNext { fetchImage(it, source) } // Load manga covers
|
||||||
.map { list -> createCatalogueSearchItem(source, list.map { GlobalSearchCardItem(it) }) }
|
.map { list -> createCatalogueSearchItem(source, list.map { GlobalSearchCardItem(it) }) }
|
||||||
},
|
},
|
||||||
5
|
5
|
||||||
|
Loading…
Reference in New Issue
Block a user