summaryrefslogtreecommitdiff
path: root/searx/templates
diff options
context:
space:
mode:
authorThomas Pointhuber <thomas.pointhuber@gmx.at>2014-03-17 11:43:00 +0100
committerThomas Pointhuber <thomas.pointhuber@gmx.at>2014-03-17 11:43:00 +0100
commit6f49bd8f08fbd52c67e21477fc2d21553d8220d7 (patch)
treed406680582a736094fff75e8e76d5144fc1aacc9 /searx/templates
parentdead837f570ea62f09469726b9ec8cbe0f8951e2 (diff)
adding publish date to video-results and rss-feed
Diffstat (limited to 'searx/templates')
-rw-r--r--searx/templates/opensearch_response_rss.xml1
-rw-r--r--searx/templates/result_templates/videos.html1
2 files changed, 2 insertions, 0 deletions
diff --git a/searx/templates/opensearch_response_rss.xml b/searx/templates/opensearch_response_rss.xml
index 417b195a3..5673eb2e1 100644
--- a/searx/templates/opensearch_response_rss.xml
+++ b/searx/templates/opensearch_response_rss.xml
@@ -16,6 +16,7 @@
<title>{{ r.title }}</title>
<link>{{ r.url }}</link>
<description>{{ r.content }}</description>
+ {% if r.pubdate %}<pubDate>{{ r.pubdate }}</pubDate>{% endif %}
</item>
{% endfor %}
</channel>
diff --git a/searx/templates/result_templates/videos.html b/searx/templates/result_templates/videos.html
index d3391f0d3..ab869a6eb 100644
--- a/searx/templates/result_templates/videos.html
+++ b/searx/templates/result_templates/videos.html
@@ -5,6 +5,7 @@
<p>
<h3 class="result_title"><a href="{{ result.url }}">{{ result.title|safe }}</a></h3>
+ {% if result.publishedDate %}<p class="published_date">{{ result.publishedDate }}</p>{% endif %}
<a href="{{ result.url }}"><img width="400px" src="{{ result.thumbnail }}" title={{ result.title }} alt=" {{ result.title }}"/></a>
<p class="url">{{ result.url }}</p>
</p>