1
0
Fork 0
mirror of https://github.com/vbatts/sl-feeds.git synced 2024-11-22 07:45:39 +00:00

feed: set a relevant title

Fixes #2

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2017-02-09 14:15:03 -05:00
parent 01020629d6
commit edc6d69369
Signed by: vbatts
GPG key ID: 10937E57733F1362
2 changed files with 2 additions and 1 deletions

View file

@ -24,7 +24,7 @@ func ToFeed(link string, entries []Entry) (*feeds.Feed, error) {
feed := &feeds.Feed{
Title: "",
Link: &feeds.Link{Href: link},
Description: "Generated ChangeLog.txt feeds by sl-feeds (github.com/vbatts/sl-feeds)",
Description: "generated by github.com/vbatts/sl-feeds",
Created: oldestEntryTime,
Updated: newestEntryTime,
}

View file

@ -132,6 +132,7 @@ func main() {
log.Println(release, err)
continue
}
feeds.Title = fmt.Sprintf("ChangeLog.txt for %s%s", mirror.Prefix, release)
fh, err := os.Create(filepath.Join(dest, mirror.Prefix+release+".rss"))
if err != nil {
log.Println(release, err)