1
0
Fork 0
mirror of https://github.com/vbatts/sl-feeds.git synced 2024-11-25 17:05:39 +00:00

Merge pull request #5 from vbatts/fix_2

feed: set a relevant title
This commit is contained in:
Vincent Batts 2017-02-09 13:21:48 -06:00 committed by GitHub
commit dabb6e7506
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)