From 833b57154ff7568714c48b4a1d04e7c04cf3eafb Mon Sep 17 00:00:00 2001 From: mattn Date: Fri, 10 May 2013 04:55:33 -0700 Subject: [PATCH] Handle content:encoded --- rss.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/rss.go b/rss.go index 0e76e36..0de511c 100644 --- a/rss.go +++ b/rss.go @@ -188,6 +188,15 @@ func (this *Feed) readRss2(doc *xmlx.Document) (err error) { i.Source.Text = src.Value } + tl = item.SelectNodes("http://purl.org/rss/1.0/modules/content/", "*") + for _, lv := range tl { + if lv.Name.Local == "encoded" { + i.Content = new(Content) + i.Content.Text = lv.String() + break + } + } + ch.Items = append(ch.Items, i) }