diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-11-23 19:27:30 +0100 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-11-23 19:27:30 +0100 |
commit | b2c2b35f8f1321a8becc49a1c8e61a6123ed616f (patch) | |
tree | 1de5892d7f8911e0456e069b19b3b59922e89079 /pyaggr3g470r/feedgetter.py | |
parent | Test if a feed already exists before creating a new one. (diff) | |
download | newspipe-b2c2b35f8f1321a8becc49a1c8e61a6123ed616f.tar.gz newspipe-b2c2b35f8f1321a8becc49a1c8e61a6123ed616f.tar.bz2 newspipe-b2c2b35f8f1321a8becc49a1c8e61a6123ed616f.zip |
It is now possible to enable or disable (stop checking for updates) a feed.
Diffstat (limited to 'pyaggr3g470r/feedgetter.py')
-rw-r--r-- | pyaggr3g470r/feedgetter.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pyaggr3g470r/feedgetter.py b/pyaggr3g470r/feedgetter.py index 21cc841d..673b5a20 100644 --- a/pyaggr3g470r/feedgetter.py +++ b/pyaggr3g470r/feedgetter.py @@ -63,11 +63,11 @@ class FeedGetter(object): """ Parse the file 'feeds.lst' and launch a thread for each RSS feed. """ - for feed in self.user.feeds: + for current_feed in [feed for feed in self.user.feeds if feed.enabled]: try: # launch a new thread for the RSS feed thread = threading.Thread(None, self.process, \ - None, (feed, )) + None, (current_feed, )) thread.start() list_of_threads.append(thread) except: |