vrt.go: fix skipfile

This commit is contained in:
Peter Kleiweg
2026-03-27 19:10:55 +01:00
parent 829a23f446
commit e96723c2fe

View File

@@ -152,13 +152,15 @@ func main() {
}
func doArticle(filename string, url string, title string, tags []string, labels []string, timestamp time.Time, needUpdate bool) bool {
if exists(filename + ".skip") {
return true
}
if needUpdate {
_ = os.Remove(filename + ".err")
_ = os.Remove(filename + ".txt")
_ = os.Remove(filename + ".html")
_ = os.Remove(filename + ".skip")
} else {
if exists(filename+".txt") || exists(filename+".skip") {
if exists(filename + ".txt") {
return true
}
}