Fix #897907 (Feed downloads don't respect recipe delay)

This commit is contained in:
Kovid Goyal 2011-11-30 08:02:53 +05:30
commit 75be93397b

View File

@ -1398,6 +1398,8 @@ class BasicNewsRecipe(Recipe):
oldest_article=self.oldest_article,
max_articles_per_feed=self.max_articles_per_feed,
get_article_url=self.get_article_url))
if (self.delay > 0):
time.sleep(self.delay)
except Exception as err:
feed = Feed()
msg = 'Failed feed: %s'%(title if title else url)