mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-30 22:07:57 +01:00 
			
		
		
		
	Fix incomplete downloads. Closes #264
This commit is contained in:
		| @@ -188,6 +188,12 @@ abstract class Source(context: Context) : BaseSource() { | ||||
|  | ||||
|     open fun getImageProgressResponse(page: Page): Observable<Response> { | ||||
|         return networkService.requestBodyProgress(imageRequest(page), page) | ||||
|                 .doOnNext { | ||||
|                     if (!it.isSuccessful) { | ||||
|                         it.body().close() | ||||
|                         throw RuntimeException("Not a valid response") | ||||
|                     } | ||||
|                 } | ||||
|     } | ||||
|  | ||||
|     fun savePageList(chapterUrl: String, pages: List<Page>?) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user