Skip to content

Commit

Permalink
Merge pull request #3 from nirajsanghvi/Update-lastdone-for-skipped-i…
Browse files Browse the repository at this point in the history
…tems

Update lastdone for skipped items
  • Loading branch information
nirajsanghvi authored Aug 20, 2022
2 parents a33a97b + 78c53a3 commit f78d10a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -713,6 +713,11 @@ func (s *Session) navN(N int) func(context.Context) error {
if err := doRun(filePath); err != nil {
return err
}
} else {
// Make sure .lastdone is still updated for the pre-existing download
if err := markDone(s.dlDir, location); err != nil {
return err
}
}
n++
if N > 0 && n >= N {
Expand Down

0 comments on commit f78d10a

Please sign in to comment.