added Extension to channel

This commit is contained in:
Duke 2014-01-23 17:37:50 -02:00
parent bd84124886
commit 937de70c03
4 changed files with 48 additions and 1 deletions

9
rss.go
View file

@ -189,6 +189,15 @@ func (this *Feed) readRss2(doc *xmlx.Document) (err error) {
ch.Items = append(ch.Items, i)
}
x := node.SelectNodes(ns, ns)
ch.Extensions = make(map[string]map[string][]Extension)
for _, v := range x {
if v.Name.Space != "" {
getExtensions(&ch.Extensions, v)
}
}
}
this.Channels = foundChannels
return