mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-03 10:54:38 -05:00
Fetch downloaded chapters page again in case the stored file can't be retrieved (#640)
In case the file could not be retrieved, the page retrieve just failed and wasn't triggered again. In case of the downloader, the chapter download just kept failing 3 times and was aborted
This commit is contained in:
@@ -88,8 +88,12 @@ object Page {
|
|||||||
|
|
||||||
val fileName = getPageName(index)
|
val fileName = getPageName(index)
|
||||||
|
|
||||||
if (chapterEntry[ChapterTable.isDownloaded]) {
|
try {
|
||||||
return ChapterDownloadHelper.getImage(mangaId, chapterId, index)
|
if (chapterEntry[ChapterTable.isDownloaded]) {
|
||||||
|
return ChapterDownloadHelper.getImage(mangaId, chapterId, index)
|
||||||
|
}
|
||||||
|
} catch (_: Exception) {
|
||||||
|
// ignore and fetch again
|
||||||
}
|
}
|
||||||
|
|
||||||
val cacheSaveDir = getChapterCachePath(mangaId, chapterId)
|
val cacheSaveDir = getChapterCachePath(mangaId, chapterId)
|
||||||
|
|||||||
Reference in New Issue
Block a user