diff options
author | Adam Tauber <asciimoo@gmail.com> | 2020-03-13 00:43:05 +0100 |
---|---|---|
committer | Adam Tauber <asciimoo@gmail.com> | 2020-03-13 00:43:05 +0100 |
commit | 9bc24080bf4c24a182cf2b5616095c2f6bea5821 (patch) | |
tree | 155f394271c8fe25d5f4c5f39c051a5a155034d5 /searx/templates/__common__ | |
parent | 3aa49cb8f98c6f9d953c2f7e4ce4f6e44f680255 (diff) | |
download | searxng-9bc24080bf4c24a182cf2b5616095c2f6bea5821.tar.gz searxng-9bc24080bf4c24a182cf2b5616095c2f6bea5821.zip |
[fix] add answers, suggestions, corrections to rss output
fixes #1888
Diffstat (limited to 'searx/templates/__common__')
-rw-r--r-- | searx/templates/__common__/opensearch_response_rss.xml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/searx/templates/__common__/opensearch_response_rss.xml b/searx/templates/__common__/opensearch_response_rss.xml index 32c42e7c7..3781dd87c 100644 --- a/searx/templates/__common__/opensearch_response_rss.xml +++ b/searx/templates/__common__/opensearch_response_rss.xml @@ -25,5 +25,29 @@ {% 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> |