diff options
author | jibe-b <user701@orange.fr> | 2017-09-22 23:43:05 +0200 |
---|---|---|
committer | Noémi Ványi <sitbackandwait@gmail.com> | 2017-11-01 14:22:26 +0100 |
commit | 575159b194440052d7b48aa073d7e03c80799c90 (patch) | |
tree | 693e1db791842058d11c6ddb2cb181bb64b10da3 /searx/preferences.py | |
parent | 7de8b43eb2081853ae15b2a52cc0cae43647320b (diff) | |
download | searxng-575159b194440052d7b48aa073d7e03c80799c90.tar.gz searxng-575159b194440052d7b48aa073d7e03c80799c90.zip |
[enh] oa_doi_rewrite plugin broadens doai_rewrite
Diffstat (limited to 'searx/preferences.py')
-rw-r--r-- | searx/preferences.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/searx/preferences.py b/searx/preferences.py index c2c649eea..00a3fd683 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 = [r for r in settings['doi_resolvers'].keys()] 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) |