aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/views
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2015-07-10 14:19:23 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2015-07-10 14:19:23 +0200
commitdc2e77014217b01c00be89179b72f35cce4bca9b (patch)
tree622120551f8e373063757a7fe79411f0d2748ba7 /pyaggr3g470r/views
parentMerged in jaesivsm/pyaggr3g470r (pull request #18) (diff)
downloadnewspipe-dc2e77014217b01c00be89179b72f35cce4bca9b.tar.gz
newspipe-dc2e77014217b01c00be89179b72f35cce4bca9b.tar.bz2
newspipe-dc2e77014217b01c00be89179b72f35cce4bca9b.zip
Only start the classic crawler if we were able to get the feed of the site.
Diffstat (limited to 'pyaggr3g470r/views')
-rw-r--r--pyaggr3g470r/views/feed.py2
1 files changed, 1 insertions, 1 deletions
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))
bgstack15