Merge pull request #19 from MJDSys/FixAuthor
Fix parsing authors in RSS feeds.
This commit is contained in:
		
						commit
						5b836b89eb
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		
							
								
								
									
										4
									
								
								rss.go
									
										
									
									
									
								
							
							
						
						
									
										4
									
								
								rss.go
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -159,7 +159,9 @@ func (this *Feed) readRss2(doc *xmlx.Document) (err error) {
 | 
			
		|||
				i.Author = Author{}
 | 
			
		||||
				i.Author.Name = n.Value
 | 
			
		||||
			}
 | 
			
		||||
            i.Author.Name = item.S(ns, "creator")
 | 
			
		||||
			if n = item.SelectNode(ns, "creator"); n != nil {
 | 
			
		||||
				i.Author = Author{ Name: n.Value }
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			i.Comments = item.S(ns, "comments")
 | 
			
		||||
			i.Guid = item.S(ns, "guid")
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue