Get new page url on image fetch failure for EHentai
This commit is contained in:
parent
2e4f811090
commit
b6b33e8c00
@ -16,6 +16,7 @@ import eu.kanade.tachiyomi.util.storage.CbzCrypto
|
||||
import eu.kanade.tachiyomi.util.storage.DiskUtil
|
||||
import eu.kanade.tachiyomi.util.storage.DiskUtil.NOMEDIA_FILE
|
||||
import eu.kanade.tachiyomi.util.storage.saveTo
|
||||
import exh.source.isEhBasedSource
|
||||
import exh.util.DataSaver
|
||||
import exh.util.DataSaver.Companion.getImage
|
||||
import kotlinx.coroutines.CancellationException
|
||||
@ -511,6 +512,9 @@ class Downloader(
|
||||
.retryWhen { _, attempt ->
|
||||
if (attempt < 3) {
|
||||
delay((2L shl attempt.toInt()) * 1000)
|
||||
if (source.isEhBasedSource()) {
|
||||
page.imageUrl = source.getImageUrl(page)
|
||||
}
|
||||
true
|
||||
} else {
|
||||
false
|
||||
|
Loading…
x
Reference in New Issue
Block a user