From eabe13e20af1d30c6231e8ed735e9ba686809687 Mon Sep 17 00:00:00 2001 From: Nalapl3 Date: Sat, 27 Oct 2018 16:17:13 +0200 Subject: [PATCH] Add amount of comments to RSS (#528) Closes #496. --- nyaa/templates/rss.xml | 1 + nyaa/templates/xmlns.html | 3 +++ 2 files changed, 4 insertions(+) diff --git a/nyaa/templates/rss.xml b/nyaa/templates/rss.xml index 0b38019..deaf3b8 100644 --- a/nyaa/templates/rss.xml +++ b/nyaa/templates/rss.xml @@ -40,6 +40,7 @@ {{- cat_id }} {{- category_name(cat_id) }} {{- torrent.filesize | filesizeformat(True) }} + {{- torrent.comment_count }} {% set torrent_id = use_elastic and torrent.meta.id or torrent.id %} #{{ torrent_id }} | {{ torrent.display_name }} | {{ torrent.filesize | filesizeformat(True) }} | {{ category_name(cat_id) }} | {{ use_elastic and torrent.info_hash or torrent.info_hash_as_hex | upper }}]]> diff --git a/nyaa/templates/xmlns.html b/nyaa/templates/xmlns.html index 9d3481e..a8e79d1 100644 --- a/nyaa/templates/xmlns.html +++ b/nyaa/templates/xmlns.html @@ -27,6 +27,9 @@
  • <nyaa:size> indicates the torrent's download size to one decimal place, using a magnitude prefix according to ISO/IEC 80000-13.

  • +
  • +

    <nyaa:comments> holds the current amount of comments made on the respective torrent.

    +
  • {% endblock %}