Merge pull request #41 from nijel/patch-2
Skip RSS entries without link
This commit is contained in:
commit
b196f8b56f
1 changed files with 3 additions and 0 deletions
3
main.py
3
main.py
|
@ -104,6 +104,9 @@ async def handle_feed(session, wall, sitetitle, site):
|
|||
title = sitetitle + ": " + article.title
|
||||
else:
|
||||
title = article.title
|
||||
if not hasattr(article, 'link'):
|
||||
logger.info("no link, skipping!")
|
||||
continue
|
||||
url = urljoin(site["url"], article.link)
|
||||
exists = await wall.entries_exists(url)
|
||||
if exists["exists"]:
|
||||
|
|
Reference in a new issue