mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-31 14:27:57 +01:00 
			
		
		
		
	Try to avoid crashing when source fails to return pages
This commit is contained in:
		| @@ -87,6 +87,7 @@ class HttpPageLoader( | ||||
|     override fun getPages(): Observable<List<ReaderPage>> { | ||||
|         return Observable.fromCallable { chapterCache.getPageListFromCache(chapter.chapter) } | ||||
|             .onErrorResumeNext { source.fetchPageList(chapter.chapter) } | ||||
|             .onErrorReturn { emptyList() } | ||||
|             .map { pages -> | ||||
|                 pages.mapIndexed { index, page -> | ||||
|                     // Don't trust sources and use our own indexing | ||||
|   | ||||
		Reference in New Issue
	
	Block a user