summaryrefslogtreecommitdiff
path: root/searx/preferences.py
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2017-11-01 21:27:57 +0100
committerGitHub <noreply@github.com>2017-11-01 21:27:57 +0100
commit3d50b0288dc2ba42baf550353f3fb5bee6462754 (patch)
tree3931e34b8501cd58db58cb651b0193ee46c23eb8 /searx/preferences.py
parent6d28e9d6945b5510b3d861e20521554435a10f63 (diff)
parent5954a8e16a64a369072a7487f62b6396a451ae5f (diff)
Merge pull request #1075 from kvch/finish-jibe-b-engines
Finish PRs of @jibe-b: pubmed, oa_doi_rewrite, openaire, arxiv
Diffstat (limited to 'searx/preferences.py')
-rw-r--r--searx/preferences.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/searx/preferences.py b/searx/preferences.py
index c2c649eea..1a143db6b 100644
--- a/searx/preferences.py
+++ b/searx/preferences.py
@@ -15,6 +15,7 @@ LANGUAGE_CODES = [l[0] for l in languages]
LANGUAGE_CODES.append('all')
DISABLED = 0
ENABLED = 1
+DOI_RESOLVERS = list(settings['doi_resolvers'])
class MissingArgumentException(Exception):
@@ -266,7 +267,9 @@ class Preferences(object):
'results_on_new_tab': MapSetting(False, map={'0': False,
'1': True,
'False': False,
- 'True': True})}
+ 'True': True}),
+ 'doi_resolver': MultipleChoiceSetting(['oadoi.org'], choices=DOI_RESOLVERS),
+ }
self.engines = EnginesSetting('engines', choices=engines)
self.plugins = PluginsSetting('plugins', choices=plugins)