Support resumable image downloads if supported by source (#3167)
Co-authored-by: MajorTanya <39014446+MajorTanya@users.noreply.github.com> Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
This commit is contained in:
@@ -404,8 +404,8 @@ abstract class HttpSource : CatalogueSource {
|
||||
)
|
||||
protected open fun imageUrlParse(response: Response): String = throw UnsupportedOperationException()
|
||||
|
||||
suspend fun getImage(page: Page): Response {
|
||||
return client.newCachelessCallWithProgress(imageRequest(page), page)
|
||||
suspend fun getImage(page: Page, existingSize: Long = 0L): Response {
|
||||
return client.newCachelessCallWithProgress(imageRequest(page), page, existingSize)
|
||||
.awaitSuccess()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user