Name tagged feeds

master
Bel LaPointe 2018-10-13 11:02:34 -06:00
parent d10c937131
commit b18079db11
1 changed files with 2 additions and 0 deletions

View File

@ -4,6 +4,7 @@ import (
"bytes"
"encoding/json"
"errors"
"fmt"
"local1/logger"
"local3/rssmon2/monitor"
"local3/rssmon2/rss"
@ -149,6 +150,7 @@ func (ex *Exchange) GetFeedTagRSS(tag string) (string, error) {
sort.Slice(combinedItems, func(i, j int) bool {
return !combinedItems[i].TS.Before(combinedItems[j].TS)
})
combinedFeed.Title = fmt.Sprintf("T: %v", tag)
return rss.ToRSS(combinedFeed, combinedItems)
}