fix #74: warn if about to write to already visited ad, overwrite if -f

This commit is contained in:
2024-02-10 14:06:06 +01:00
committed by T.v.Dein
parent ed78731b3c
commit 612ed2aa79
11 changed files with 54 additions and 8 deletions

View File

@@ -123,6 +123,9 @@ func Main(output io.Writer) int {
return Die(err)
}
// setup ad dir registry, needed to check for duplicates
DirsVisited = make(map[string]int)
switch {
case len(conf.Adlinks) >= 1:
// directly backup ad listing[s]