summaryrefslogtreecommitdiff
path: root/searx/preferences.py
diff options
context:
space:
mode:
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)