aboutsummaryrefslogtreecommitdiff
path: root/source/pyAggr3g470r.py
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-01-20 12:31:12 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-01-20 12:31:12 +0100
commitb6445a31fee14f6935ddc2cde7ec3ff2e31ea161 (patch)
tree934fdeb61f193193130c95169d35b433c7f4c06d /source/pyAggr3g470r.py
parentMinor bugfix in index.html template: feed['mail'] == True if mail notificatio... (diff)
downloadnewspipe-b6445a31fee14f6935ddc2cde7ec3ff2e31ea161.tar.gz
newspipe-b6445a31fee14f6935ddc2cde7ec3ff2e31ea161.tar.bz2
newspipe-b6445a31fee14f6935ddc2cde7ec3ff2e31ea161.zip
You can now fetch only one feed.
Diffstat (limited to 'source/pyAggr3g470r.py')
-rwxr-xr-xsource/pyAggr3g470r.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/source/pyAggr3g470r.py b/source/pyAggr3g470r.py
index d99ab122..2120a171 100755
--- a/source/pyAggr3g470r.py
+++ b/source/pyAggr3g470r.py
@@ -172,12 +172,16 @@ class pyAggr3g470r(object):
search.exposed = True
@auth.require()
- def fetch(self):
+ def fetch(self, param=None):
"""
Fetch all feeds.
"""
+ feed_link = None
+ if None != param:
+ # Fetch only the feed specified in parameter
+ feed_link = self.mongo.get_feed(param)["feed_link"]
feed_getter = feedgetter.FeedGetter()
- feed_getter.retrieve_feed()
+ feed_getter.retrieve_feed(feed_url=feed_link)
return self.index()
fetch.exposed = True
bgstack15