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 336c16f
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 download logic checks if a page is already downloaded, by deleting existing downloads, it's ensured that
// this is not possible and prevents 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 336c16f

Please sign in to comment.