aboutsummaryrefslogtreecommitdiff
path: root/conf.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2015-04-08 07:46:38 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2015-04-08 07:46:38 +0200
commit50192b8aab87eebad1df8d699355dae6024c6406 (patch)
treeabd3eadbec56dfdac649fbd4b303adc35fe92484 /conf.py
parentMerged in jaesivsm/pyaggr3g470r (pull request #7) (diff)
downloadnewspipe-50192b8aab87eebad1df8d699355dae6024c6406.tar.gz
newspipe-50192b8aab87eebad1df8d699355dae6024c6406.tar.bz2
newspipe-50192b8aab87eebad1df8d699355dae6024c6406.zip
The minimum error count is now specified in the configuration file.
Diffstat (limited to 'conf.py')
-rw-r--r--conf.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/conf.py b/conf.py
index 7f3e82ff..0d11cae7 100644
--- a/conf.py
+++ b/conf.py
@@ -48,6 +48,7 @@ if not ON_HEROKU:
HTTP_PROXY = config.get('feedparser', 'http_proxy')
USER_AGENT = config.get('feedparser', 'user_agent')
RESOLVE_ARTICLE_URL = int(config.get('feedparser', 'resolve_article_url')) == 1
+ DEFAULT_MAX_ERROR = int(config.get('feedparser', 'default_max_error'))
WEBSERVER_DEBUG = int(config.get('webserver', 'debug')) == 1
WEBSERVER_HOST = config.get('webserver', 'host')
@@ -77,6 +78,7 @@ else:
HTTP_PROXY = ""
USER_AGENT = "Mozilla/5.0 (X11; Debian; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
RESOLVE_ARTICLE_URL = int(os.environ.get('RESOLVE_ARTICLE_URL', 0)) == 1
+ DEFAULT_MAX_ERROR = int(os.environ.get('DEFAULT_MAX_ERROR', 6))
WEBSERVER_DEBUG = False
WEBSERVER_HOST = '0.0.0.0'
bgstack15