mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
Add delay between consecutive feed downloads according to recipe's delay value
This commit is contained in:
parent
8d019b4267
commit
c349fe1e33
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user