clarify logs and gitignore and skipping vendor from now on
Former-commit-id: c8b61b58379d768f04e1593c2a77cf429407cf62
This commit is contained in:
@@ -74,20 +74,20 @@ func (f *Feed) Pull() error {
|
||||
for _, i := range gofeed.Items {
|
||||
item, err := newItem(i, f.ContentFilter)
|
||||
if err != nil {
|
||||
log.Println(err)
|
||||
log.Println("[Pull]", err)
|
||||
continue
|
||||
}
|
||||
itemTSs = append(itemTSs, &item.TS)
|
||||
if item.TS.Before(f.Updated) {
|
||||
log.Println("Skipping old item")
|
||||
log.Println("[Pull]", "Skipping old item")
|
||||
continue
|
||||
}
|
||||
if ok := regexp.MustCompile(f.TitleFilter).MatchString(item.Title); !ok {
|
||||
log.Println("Skipping bad titled item")
|
||||
log.Println("[Pull]", "Skipping bad titled item")
|
||||
continue
|
||||
}
|
||||
if err := item.save(f.Key); err != nil {
|
||||
log.Println(err)
|
||||
log.Println("[Pull]", err)
|
||||
continue
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user