diff --git a/rss.go b/rss.go index b790612..ec65e8f 100644 --- a/rss.go +++ b/rss.go @@ -90,11 +90,13 @@ 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), } + if i.Source != nil { + item.Source = i.Source.Href + } intLength, err := strconv.ParseInt(i.Link.Length, 10, 64)