forked from zaclys/searxng
parent
3aa49cb8f9
commit
9bc24080bf
|
@ -25,5 +25,29 @@
|
||||||
{% if r.pubdate %}<pubDate>{{ r.pubdate }}</pubDate>{% endif %}
|
{% if r.pubdate %}<pubDate>{{ r.pubdate }}</pubDate>{% endif %}
|
||||||
</item>
|
</item>
|
||||||
{% endfor %}
|
{% 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>
|
</channel>
|
||||||
</rss>
|
</rss>
|
||||||
|
|
|
@ -637,9 +637,13 @@ def index():
|
||||||
response.headers.add('Content-Disposition', cont_disp)
|
response.headers.add('Content-Disposition', cont_disp)
|
||||||
return response
|
return response
|
||||||
elif output_format == 'rss':
|
elif output_format == 'rss':
|
||||||
|
print(results)
|
||||||
response_rss = render(
|
response_rss = render(
|
||||||
'opensearch_response_rss.xml',
|
'opensearch_response_rss.xml',
|
||||||
results=results,
|
results=results,
|
||||||
|
answers=result_container.answers,
|
||||||
|
corrections=result_container.corrections,
|
||||||
|
suggestions=result_container.suggestions,
|
||||||
q=request.form['q'],
|
q=request.form['q'],
|
||||||
number_of_results=number_of_results,
|
number_of_results=number_of_results,
|
||||||
base_url=get_base_url(),
|
base_url=get_base_url(),
|
||||||
|
|
Loading…
Reference in New Issue