added Extension to channel
This commit is contained in:
parent
bd84124886
commit
937de70c03
4 changed files with 48 additions and 1 deletions
9
rss.go
9
rss.go
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue