Skip to content

Commit

Permalink
Delete existing download of new chapters
Browse files Browse the repository at this point in the history
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
  • Loading branch information
schroda committed Aug 30, 2024
1 parent 9f49587 commit 6174c1e
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,10 @@ object Chapter {
return
}

// 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
deleteChapters(chapterIdsToDownload)

log.info { "download ${chapterIdsToDownload.size} new chapter(s)..." }

DownloadManager.enqueue(EnqueueInput(chapterIdsToDownload))
Expand Down

0 comments on commit 6174c1e

Please sign in to comment.