mirror of
https://gitlab.com/SIGBUS/nyaa.git
synced 2024-12-30 17:51:55 +00:00
merge #481 add trusted and remake information to RSS feed
This commit is contained in:
parent
90607d6993
commit
ff44d7a51c
|
@ -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>
|
||||
|
|
|
@ -27,6 +27,12 @@
|
|||
<li>
|
||||
<p><code><nyaa:size></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><nyaa:trusted></code> indicates whether the torrent came from a trusted uploader (YES or NO).</p>
|
||||
</li>
|
||||
<li>
|
||||
<p><code><nyaa:remake></code> indicates whether the torrent was a remake (YES or NO).</p>
|
||||
</li>
|
||||
<li>
|
||||
<p><code><nyaa:comments></code> holds the current amount of comments made on the respective torrent.</p>
|
||||
</li>
|
||||
|
|
Loading…
Reference in a new issue