Skip to content

Commit

Permalink
merge nyaadevs#481 add trusted and remake information to RSS feed
Browse files Browse the repository at this point in the history
  • Loading branch information
nallown authored and nyaadev committed Aug 10, 2019
1 parent 90607d6 commit ff44d7a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nyaa/templates/rss.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
6 changes: 6 additions & 0 deletions nyaa/templates/xmlns.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ <h1>Nyaa XML Namespace</h1>
<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>
Expand Down

0 comments on commit ff44d7a

Please sign in to comment.