merge #481 add trusted and remake information to RSS feed

This commit is contained in:
nallown 2019-08-10 23:32:38 +02:00 committed by nyaadev
parent 90607d6993
commit ff44d7a51c
2 changed files with 8 additions and 0 deletions

View File

@ -41,6 +41,8 @@
<nyaa:category> {{- category_name(cat_id) }}</nyaa:category>
<nyaa:size> {{- torrent.filesize | filesizeformat(True) }}</nyaa:size>
<nyaa:comments> {{- torrent.comment_count }}</nyaa:comments>
<nyaa:trusted> {{- torrent.trusted and 'Yes' or 'No' }}</nyaa:trusted>
<nyaa:remake> {{- torrent.remake and 'Yes' or 'No' }}</nyaa:remake>
{% set torrent_id = use_elastic and torrent.meta.id or torrent.id %}
<description><![CDATA[<a href="{{ url_for('torrents.view', torrent_id=torrent_id, _external=True) }}">#{{ torrent_id }} | {{ torrent.display_name }}</a> | {{ torrent.filesize | filesizeformat(True) }} | {{ category_name(cat_id) }} | {{ use_elastic and torrent.info_hash or torrent.info_hash_as_hex | upper }}]]></description>
</item>

View File

@ -27,6 +27,12 @@
<li>
<p><code>&lt;nyaa:size&gt;</code> indicates the torrent's download size to one decimal place, using a magnitude prefix according to ISO/IEC 80000-13.</p>
</li>
<li>
<p><code>&lt;nyaa:trusted&gt;</code> indicates whether the torrent came from a trusted uploader (YES or NO).</p>
</li>
<li>
<p><code>&lt;nyaa:remake&gt;</code> indicates whether the torrent was a remake (YES or NO).</p>
</li>
<li>
<p><code>&lt;nyaa:comments&gt;</code> holds the current amount of comments made on the respective torrent.</p>
</li>