don't output anything if any url fails

This commit is contained in:
filifa 2024-06-18 18:46:36 -05:00
parent c2d946a1d8
commit 9dd67e684c
1 changed files with 5 additions and 1 deletions

View File

@ -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 {