Skip to content

Commit 6174c1e

Browse files
committed
Delete existing download of new chapters
The downloader checks if pages are already downloaded to prevent unnecessary downloads. However, in case this is e.g. a re-uploaded chapter, this will prevent the new pages from getting downloaded
1 parent 9f49587 commit 6174c1e

File tree

1 file changed

+4
-0
lines changed
  • server/src/main/kotlin/suwayomi/tachidesk/manga/impl

1 file changed

+4
-0
lines changed

server/src/main/kotlin/suwayomi/tachidesk/manga/impl/Chapter.kt

+4
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,10 @@ object Chapter {
377377
return
378378
}
379379

380+
// The downloader checks if pages are already downloaded to prevent unnecessary downloads. However, in case this
381+
// is e.g. a re-uploaded chapter, this will prevent the new pages from getting downloaded
382+
deleteChapters(chapterIdsToDownload)
383+
380384
log.info { "download ${chapterIdsToDownload.size} new chapter(s)..." }
381385

382386
DownloadManager.enqueue(EnqueueInput(chapterIdsToDownload))

0 commit comments

Comments
 (0)