Get new page url on image fetch failure for EHentai
(cherry picked from commit b6b33e8c00b616b70254bdbc13d240f4c13409bb)
This commit is contained in:
parent
087121a5ec
commit
4465aae0fd
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||||
import eu.kanade.tachiyomi.util.storage.DiskUtil.NOMEDIA_FILE
|
import eu.kanade.tachiyomi.util.storage.DiskUtil.NOMEDIA_FILE
|
||||||
import eu.kanade.tachiyomi.util.storage.saveTo
|
import eu.kanade.tachiyomi.util.storage.saveTo
|
||||||
|
import exh.source.isEhBasedSource
|
||||||
import exh.util.DataSaver
|
import exh.util.DataSaver
|
||||||
import exh.util.DataSaver.Companion.getImage
|
import exh.util.DataSaver.Companion.getImage
|
||||||
import kotlinx.coroutines.CancellationException
|
import kotlinx.coroutines.CancellationException
|
||||||
|
|
@ -511,6 +512,9 @@ class Downloader(
|
||||||
.retryWhen { _, attempt ->
|
.retryWhen { _, attempt ->
|
||||||
if (attempt < 3) {
|
if (attempt < 3) {
|
||||||
delay((2L shl attempt.toInt()) * 1000)
|
delay((2L shl attempt.toInt()) * 1000)
|
||||||
|
if (source.isEhBasedSource()) {
|
||||||
|
page.imageUrl = source.getImageUrl(page)
|
||||||
|
}
|
||||||
true
|
true
|
||||||
} else {
|
} else {
|
||||||
false
|
false
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue