From 3dbbcacc14a8efd10f72ced184efffeb09b94943 Mon Sep 17 00:00:00 2001 From: Milan Aleksic Date: Wed, 31 May 2017 18:00:00 +0200 Subject: [PATCH] support added for Source field in RSS --- feed.go | 1 + rss.go | 1 + 2 files changed, 2 insertions(+) diff --git a/feed.go b/feed.go index fe4833e..6efce1d 100644 --- a/feed.go +++ b/feed.go @@ -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 diff --git a/rss.go b/rss.go index 3381f74..b790612 100644 --- a/rss.go +++ b/rss.go @@ -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),