update comments
This commit is contained in:
parent
996bcdc90d
commit
19c6d90915
3 changed files with 4 additions and 2 deletions
|
|
@ -94,7 +94,7 @@ func discoverFeed(url string) (*gofeed.Feed, *[]FeedSource, error) {
|
|||
feedparser := gofeed.NewParser()
|
||||
feed, err := feedparser.Parse(bytes.NewReader(content))
|
||||
if err == nil {
|
||||
// WILD: some feeds do not have link to itself
|
||||
// WILD: feeds may not always have link to themselves
|
||||
if len(feed.FeedLink) == 0 {
|
||||
feed.FeedLink = url
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue