support added for Source field in RSS

This commit is contained in:
Milan Aleksic
2017-05-31 18:00:00 +02:00
committed by Kamil Kisiel
parent 441264de03
commit 3dbbcacc14
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -17,6 +17,7 @@ type Author struct {
type Item struct {
Title string
Link *Link
Source *Link
Author *Author
Description string // used as description in rss, summary in atom
Id string // used as guid in rss, id in atom
+1
View File
@@ -90,6 +90,7 @@ func newRssItem(i *Item) *RssItem {
item := &RssItem{
Title: i.Title,
Link: i.Link.Href,
Source: i.Source.Href,
Description: i.Description,
Guid: i.Id,
PubDate: anyTimeFormat(time.RFC1123Z, i.Created, i.Updated),