aboutsummaryrefslogtreecommitdiff
path: root/fetch.py
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel+bitbucket@gmail.com>2014-06-08 18:25:06 +0200
committerCédric Bonhomme <kimble.mandel+bitbucket@gmail.com>2014-06-08 18:25:06 +0200
commit0a80a6a62e94b326d9f1dea947ebbc87149a1922 (patch)
treeba7f055f7910e1b5317ce8b952c43179116942d5 /fetch.py
parentFont size for the sidebar: 100% (diff)
parentsupporting feed without date or with ill formated date (diff)
downloadnewspipe-0a80a6a62e94b326d9f1dea947ebbc87149a1922.tar.gz
newspipe-0a80a6a62e94b326d9f1dea947ebbc87149a1922.tar.bz2
newspipe-0a80a6a62e94b326d9f1dea947ebbc87149a1922.zip
Merged in jaesivsm/pyaggr3g470r (pull request #1)
misc fixes
Diffstat (limited to 'fetch.py')
-rwxr-xr-x[-rw-r--r--]fetch.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/fetch.py b/fetch.py
index 38d1ba2f..cc3068e0 100644..100755
--- a/fetch.py
+++ b/fetch.py
@@ -6,8 +6,11 @@
# You can use this script with cron, for example:
# */30 * * * * cd ~/.pyaggr3g470r/ ; python fetch.py
# to fetch articles every 30 minutes.
-
import sys
+if 'threading' in sys.modules:
+ raise Exception('threading module loaded before patching!')
+import gevent.monkey
+gevent.monkey.patch_thread()
from pyaggr3g470r import crawler
from pyaggr3g470r.models import User
bgstack15