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:
parent
01020629d6
commit
edc6d69369
2 changed files with 2 additions and 1 deletions
|
@ -24,7 +24,7 @@ func ToFeed(link string, entries []Entry) (*feeds.Feed, error) {
|
||||||
feed := &feeds.Feed{
|
feed := &feeds.Feed{
|
||||||
Title: "",
|
Title: "",
|
||||||
Link: &feeds.Link{Href: link},
|
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,
|
Created: oldestEntryTime,
|
||||||
Updated: newestEntryTime,
|
Updated: newestEntryTime,
|
||||||
}
|
}
|
||||||
|
|
|
@ -132,6 +132,7 @@ func main() {
|
||||||
log.Println(release, err)
|
log.Println(release, err)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
feeds.Title = fmt.Sprintf("ChangeLog.txt for %s%s", mirror.Prefix, release)
|
||||||
fh, err := os.Create(filepath.Join(dest, mirror.Prefix+release+".rss"))
|
fh, err := os.Create(filepath.Join(dest, mirror.Prefix+release+".rss"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Println(release, err)
|
log.Println(release, err)
|
||||||
|
|
Loading…
Reference in a new issue