From dc2e77014217b01c00be89179b72f35cce4bca9b Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Fri, 10 Jul 2015 14:19:23 +0200 Subject: Only start the classic crawler if we were able to get the feed of the site. --- pyaggr3g470r/views/feed.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pyaggr3g470r/views/feed.py') diff --git a/pyaggr3g470r/views/feed.py b/pyaggr3g470r/views/feed.py index 86d07e18..e9827668 100644 --- a/pyaggr3g470r/views/feed.py +++ b/pyaggr3g470r/views/feed.py @@ -109,7 +109,7 @@ def bookmarklet(): "RSS link manually and reactivate this feed"), 'warning') feed = feed_contr.create(**feed) flash(gettext('Feed was successfully created.'), 'success') - if conf.CRAWLING_METHOD == "classic": + if feed.enabled and conf.CRAWLING_METHOD == "classic": utils.fetch(g.user.id, feed.id) flash(gettext("Downloading articles for the new feed..."), 'info') return redirect(url_for('feed.form', feed_id=feed.id)) -- cgit