mirror of
https://gitlab.com/SIGBUS/nyaa.git
synced 2025-01-02 15:05:39 +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:category> {{- category_name(cat_id) }}</nyaa:category>
|
||||||
<nyaa:size> {{- torrent.filesize | filesizeformat(True) }}</nyaa:size>
|
<nyaa:size> {{- torrent.filesize | filesizeformat(True) }}</nyaa:size>
|
||||||
<nyaa:comments> {{- torrent.comment_count }}</nyaa:comments>
|
<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 %}
|
{% 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>
|
<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>
|
</item>
|
||||||
|
|
|
@ -27,6 +27,12 @@
|
||||||
<li>
|
<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>
|
<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>
|
||||||
|
<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>
|
<li>
|
||||||
<p><code><nyaa:comments></code> holds the current amount of comments made on the respective torrent.</p>
|
<p><code><nyaa:comments></code> holds the current amount of comments made on the respective torrent.</p>
|
||||||
</li>
|
</li>
|
||||||
|
|
Loading…
Reference in a new issue