summaryrefslogtreecommitdiff
path: root/searx
diff options
context:
space:
mode:
Diffstat (limited to 'searx')
-rw-r--r--searx/plugins/oa_doi_rewrite.py3
-rw-r--r--searx/settings.yml1
2 files changed, 3 insertions, 1 deletions
diff --git a/searx/plugins/oa_doi_rewrite.py b/searx/plugins/oa_doi_rewrite.py
index b62ef0b1e..d316d14fc 100644
--- a/searx/plugins/oa_doi_rewrite.py
+++ b/searx/plugins/oa_doi_rewrite.py
@@ -30,7 +30,8 @@ def get_doi_resolver(args, preference_doi_resolver):
doi_resolver = args.get('doi_resolver', preference_doi_resolver)[0]
if doi_resolver not in doi_resolvers:
doi_resolvers = settings['default_doi_resolver']
- return doi_resolver
+ doi_resolver_url = doi_resolvers[doi_resolver]
+ return doi_resolver_url
def on_result(request, search, result):
diff --git a/searx/settings.yml b/searx/settings.yml
index 0bd16ca2a..f2c272bc6 100644
--- a/searx/settings.yml
+++ b/searx/settings.yml
@@ -765,5 +765,6 @@ doi_resolvers :
oadoi.org : 'https://oadoi.org/'
doi.org : 'https://doi.org/'
doai.io : 'http://doai.io/'
+ sci-hub.tw : 'http://sci-hub.tw/'
default_doi_resolver : 'oadoi.org'