From 78c53a31c09ee5e1ed88b19c3023d028319db8bc Mon Sep 17 00:00:00 2001 From: Niraj Sanghvi Date: Fri, 19 Aug 2022 17:40:27 -0700 Subject: [PATCH] Update lastdone for skipped items --- main.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.go b/main.go index 16ab73c..46576c0 100644 --- a/main.go +++ b/main.go @@ -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 {