Try items in outside of channel node
This commit is contained in:
		
							parent
							
								
									3f18008689
								
							
						
					
					
						commit
						ed51885f15
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		
							
								
								
									
										3
									
								
								rss.go
									
										
									
									
									
								
							
							
						
						
									
										3
									
								
								rss.go
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -134,6 +134,9 @@ func (this *Feed) readRss2(doc *xmlx.Document) (err error) {
 | 
			
		|||
 | 
			
		||||
		itemcount := len(ch.Items)
 | 
			
		||||
		list = node.SelectNodes(ns, "item")
 | 
			
		||||
		if len(list) == 0 {
 | 
			
		||||
			list = doc.SelectNodes(ns, "item")
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		for _, item := range list {
 | 
			
		||||
			if haveItem(ch, item.S(ns, "pubDate"),
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue