fix skipfile
This commit is contained in:
@@ -128,13 +128,15 @@ 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 + ".skip")
|
||||
_ = os.Remove(filename + ".json")
|
||||
} else {
|
||||
if exists(filename+".json") || exists(filename+".skip") {
|
||||
if exists(filename + ".json") {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user