From eda407a33d44fb3b131135db72516f95a286809c Mon Sep 17 00:00:00 2001 From: cra88y/pc Date: Sun, 29 Mar 2026 21:05:40 -0500 Subject: [PATCH] fix: JSON doesn't need AI answers --- ai_answers.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ai_answers.py b/ai_answers.py index 892ef1e..57c514a 100644 --- a/ai_answers.py +++ b/ai_answers.py @@ -900,6 +900,9 @@ class SXNGPlugin(Plugin): if request and hasattr(request, 'headers') and request.headers.get('X-AI-Auxiliary'): return results + if request and request.form.get('format', 'html') != 'html': + return results + if self.question_mark_required and '?' not in search.search_query.query: return results