diff options
author | Popolon <popolon@popolon.org> | 2018-08-06 00:53:55 +0200 |
---|---|---|
committer | Popolon <popolon@popolon.org> | 2018-08-06 00:53:55 +0200 |
commit | 3a160d3aed9d5eb7cebe2427f9009b4e0e2f07c4 (patch) | |
tree | b0f1e57abb1cc3fb5a2e757789a4dcd054288122 | |
parent | d51732c0e5e89f86abfe68718277a2e21b190103 (diff) | |
download | searxng-3a160d3aed9d5eb7cebe2427f9009b4e0e2f07c4.tar.gz searxng-3a160d3aed9d5eb7cebe2427f9009b4e0e2f07c4.zip |
return doi resolver url instead of doi resolver name
-rw-r--r-- | searx/plugins/oa_doi_rewrite.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/searx/plugins/oa_doi_rewrite.py b/searx/plugins/oa_doi_rewrite.py index b62ef0b1e..d078f1377 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): |