vrt.go: fix skipfile
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user