Parool: skip liveblog
This commit is contained in:
@@ -179,6 +179,16 @@ func doArticle(filename string, url string, timestamp time.Time, needUpdate bool
|
||||
}
|
||||
article := articles[0]
|
||||
|
||||
live, err := article.Search(`//*[@data-test-id="live-blog-label"]`)
|
||||
p(err)
|
||||
if len(live) > 0 {
|
||||
fp, err := os.Create(filename + ".skip")
|
||||
p(fp.WriteString("liveblog\n"))
|
||||
p(err)
|
||||
p(os.Chtimes(filename+".skip", timestamp, timestamp))
|
||||
return true
|
||||
}
|
||||
|
||||
tags := make([]string, 0)
|
||||
ell, err := article.Search(`//header//*[@data-test-id="article-label"]`)
|
||||
p(err)
|
||||
|
||||
Reference in New Issue
Block a user