Fix bug introduced in commit 09a1cbe77d
This commit is contained in:
parent
c0ed5ef9ba
commit
957d827135
2
atom.go
2
atom.go
|
@ -103,7 +103,7 @@ func (this *Feed) readAtom(doc *xmlx.Document) (err error) {
|
|||
|
||||
links := item.SelectNodes(ns, "link")
|
||||
for _, lv := range links {
|
||||
if tn.As(ns, "rel") == "enclosure" {
|
||||
if lv.As(ns, "rel") == "enclosure" {
|
||||
enc := new(Enclosure)
|
||||
enc.Url = lv.As("", "href")
|
||||
enc.Type = lv.As("", "type")
|
||||
|
|
Loading…
Reference in New Issue