Name tagged feeds
parent
d10c937131
commit
b18079db11
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue