commit
87b95b233d
11
feed.go
11
feed.go
|
@ -293,15 +293,12 @@ func (this *Feed) testVersions() bool {
|
||||||
func (this *Feed) GetVersionInfo(doc *xmlx.Document) (ftype string, fversion [2]int) {
|
func (this *Feed) GetVersionInfo(doc *xmlx.Document) (ftype string, fversion [2]int) {
|
||||||
var node *xmlx.Node
|
var node *xmlx.Node
|
||||||
|
|
||||||
if node = doc.SelectNode("http://www.w3.org/2005/Atom", "feed"); node == nil {
|
if node = doc.SelectNode("http://www.w3.org/2005/Atom", "feed"); node != nil {
|
||||||
goto rss
|
ftype = "atom"
|
||||||
|
fversion = [2]int{1, 0}
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
ftype = "atom"
|
|
||||||
fversion = [2]int{1, 0}
|
|
||||||
return
|
|
||||||
|
|
||||||
rss:
|
|
||||||
if node = doc.SelectNode("", "rss"); node != nil {
|
if node = doc.SelectNode("", "rss"); node != nil {
|
||||||
ftype = "rss"
|
ftype = "rss"
|
||||||
major := 0
|
major := 0
|
||||||
|
|
Loading…
Reference in New Issue