summaryrefslogtreecommitdiff
path: root/searx/plugins/oa_doi_rewrite.py
diff options
context:
space:
mode:
Diffstat (limited to 'searx/plugins/oa_doi_rewrite.py')
-rw-r--r--searx/plugins/oa_doi_rewrite.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/searx/plugins/oa_doi_rewrite.py b/searx/plugins/oa_doi_rewrite.py
index d4942498f..be80beb26 100644
--- a/searx/plugins/oa_doi_rewrite.py
+++ b/searx/plugins/oa_doi_rewrite.py
@@ -35,6 +35,9 @@ def get_doi_resolver(args, preference_doi_resolver):
def on_result(request, search, result):
+ if 'parsed_url' not in result:
+ return True
+
doi = extract_doi(result['parsed_url'])
if doi and len(doi) < 50:
for suffix in ('/', '.pdf', '/full', '/meta', '/abstract'):