Handle content:encoded

This commit is contained in:
mattn 2013-05-10 04:55:33 -07:00
parent ed51885f15
commit 833b57154f
1 changed files with 9 additions and 0 deletions

9
rss.go
View File

@ -188,6 +188,15 @@ func (this *Feed) readRss2(doc *xmlx.Document) (err error) {
i.Source.Text = src.Value 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) ch.Items = append(ch.Items, i)
} }