summaryrefslogtreecommitdiff
path: root/searx/plugins
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2016-11-14 17:25:21 +0100
committerAdam Tauber <asciimoo@gmail.com>2016-11-14 17:25:21 +0100
commit88dfee858e93e54ad6e54801f88b93bfdc2bb149 (patch)
treec96125e371be3e8ab96045f00d4ef6f502b68694 /searx/plugins
parent96f182d75d76a77457137abd89b3cc374c26aa9f (diff)
downloadsearxng-88dfee858e93e54ad6e54801f88b93bfdc2bb149.tar.gz
searxng-88dfee858e93e54ad6e54801f88b93bfdc2bb149.zip
[fix] rewrite missing variable
Diffstat (limited to 'searx/plugins')
-rw-r--r--searx/plugins/doai_rewrite.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/plugins/doai_rewrite.py b/searx/plugins/doai_rewrite.py
index 0142af672..a6e15ae5a 100644
--- a/searx/plugins/doai_rewrite.py
+++ b/searx/plugins/doai_rewrite.py
@@ -27,5 +27,5 @@ def on_result(request, search, result):
if doi.endswith(suffix):
doi = doi[:-len(suffix)]
result['url'] = 'http://doai.io/' + doi
- result['parsed_url'] = urlparse(ctx['result']['url'])
+ result['parsed_url'] = urlparse(result['url'])
return True