Skip to content

Commit

Permalink
Bugfix length of postfix.
Browse files Browse the repository at this point in the history
  • Loading branch information
bor8 committed Jul 27, 2016
1 parent 3acdd34 commit 329f5c9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions feedfinder.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,7 @@ def getLocalLinks(links, baseuri):
def isFeedLink(link):
if link.startswith('http://feeds.feedburner.com/'): return True
if link.endswith('/feeds/posts/default'): return True
return link[-4:].lower() in ('.rss', '.rdf', '.xml', '.atom', 'atom/',
'/atom', '/feed')
return link[-4:].lower() in ('.rss', '.rdf', '.xml') or link[-5:].lower() in ('.atom', 'atom/', '/atom', '/feed')

def isXMLRelatedLink(link):
link = link.lower()
Expand Down

0 comments on commit 329f5c9

Please sign in to comment.