mirror of
https://github.com/mihonapp/mihon.git
synced 2026-10-20 07:32:28 -07:00
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:
co-authored by
MajorTanya
AntsyLich
parent
a82ccea6f5
commit
d8c3440d37
@@ -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