From b18079db11a5e8a94b27d1e701ff674ff725833b Mon Sep 17 00:00:00 2001 From: Bel LaPointe Date: Sat, 13 Oct 2018 11:02:34 -0600 Subject: [PATCH] Name tagged feeds --- exchange/exchange.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/exchange/exchange.go b/exchange/exchange.go index 873cd84..a3d193b 100644 --- a/exchange/exchange.go +++ b/exchange/exchange.go @@ -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) }