don't output anything if any url fails
This commit is contained in:
parent
c2d946a1d8
commit
9dd67e684c
|
@ -57,8 +57,12 @@ func rssfetch(cmd *cobra.Command, urls []string) {
|
|||
feedChs = append(feedChs, ch)
|
||||
}
|
||||
|
||||
var feeds []*gofeed.Feed
|
||||
for _, feedCh := range feedChs {
|
||||
feed := <-feedCh
|
||||
feeds = append(feeds, <-feedCh)
|
||||
}
|
||||
|
||||
for _, feed := range feeds {
|
||||
for _, item := range feed.Items {
|
||||
out, err := formatItem(item, tmpl)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue