From 88dfee858e93e54ad6e54801f88b93bfdc2bb149 Mon Sep 17 00:00:00 2001 From: Adam Tauber Date: Mon, 14 Nov 2016 17:25:21 +0100 Subject: [PATCH] [fix] rewrite missing variable --- searx/plugins/doai_rewrite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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