fix skipfile
This commit is contained in:
@@ -133,15 +133,17 @@ func main() {
|
||||
}
|
||||
|
||||
func doArticle(filename string, url string, timestamp time.Time, needUpdate bool) bool {
|
||||
if exists(filename + ".skip") {
|
||||
return true
|
||||
}
|
||||
if needUpdate {
|
||||
_ = os.Remove(filename + ".err")
|
||||
_ = os.Remove(filename + ".html")
|
||||
_ = os.Remove(filename + ".json")
|
||||
_ = os.Remove(filename + ".txt")
|
||||
_ = os.Remove(filename + ".skip")
|
||||
} else {
|
||||
// voor sommige berichten is geen .txt, alleen .json
|
||||
if exists(filename+".json") || exists(filename+".skip") {
|
||||
if exists(filename + ".json") {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user