summaryrefslogtreecommitdiff
path: root/searx/templates/simple/opensearch_response_rss.xml
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2024-10-29 15:09:40 +0100
committerMarkus Heiser <markus.heiser@darmarIT.de>2024-11-25 09:34:02 +0100
commit5fbea0b62df9877b4c07489ca631ced7af0d939b (patch)
tree7a24fc678b500ce153246f5dc6f08832c6c4693f /searx/templates/simple/opensearch_response_rss.xml
parenteb59b4604a6c9de2ac6943d07a2a09a06e7e279a (diff)
downloadsearxng-5fbea0b62df9877b4c07489ca631ced7af0d939b.tar.gz
searxng-5fbea0b62df9877b4c07489ca631ced7af0d939b.zip
[refactor] <type> element isn't a part of the RSS 2.0 spec [1]
[1] https://cyber.harvard.edu/rss/rss.html Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/templates/simple/opensearch_response_rss.xml')
-rw-r--r--searx/templates/simple/opensearch_response_rss.xml25
1 files changed, 1 insertions, 24 deletions
diff --git a/searx/templates/simple/opensearch_response_rss.xml b/searx/templates/simple/opensearch_response_rss.xml
index b827bae85..574f32e69 100644
--- a/searx/templates/simple/opensearch_response_rss.xml
+++ b/searx/templates/simple/opensearch_response_rss.xml
@@ -21,34 +21,11 @@
{% for r in results %}
<item>
<title>{{ r.title }}</title>
+ <type>result</type>
<link>{{ r.url }}</link>
<description>{{ r.content }}</description>
{% if r.pubdate %}<pubDate>{{ r.pubdate }}</pubDate>{% endif %}
</item>
{% endfor %}
- {% if answers %}
- {% for a in answers %}
- <item>
- <title>{{ a }}</title>
- <type>answer</type>
- </item>
- {% endfor %}
- {% endif %}
- {% if corrections %}
- {% for a in corrections %}
- <item>
- <title>{{ a }}</title>
- <type>correction</type>
- </item>
- {% endfor %}
- {% endif %}
- {% if suggestions %}
- {% for a in suggestions %}
- <item>
- <title>{{ a }}</title>
- <type>suggestion</type>
- </item>
- {% endfor %}
- {% endif %}
</channel>
</rss>