mirror of
https://gitlab.com/SIGBUS/nyaa.git
synced 2025-01-25 20:25:13 +00:00
26 lines
1 KiB
XML
26 lines
1 KiB
XML
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
|
|
<channel>
|
|
<title>{{ config.SITE_NAME }} Torrent File RSS (No magnets)</title>
|
|
<description>RSS Feed for {{ term }}</description>
|
|
<link>{{ url_for('home', _external=True) }}</link>
|
|
<atom:link href="{{ url_for('home', page='rss', _external=True) }}" rel="self" type="application/rss+xml" />
|
|
{% for torrent in query %}
|
|
{% if torrent.has_torrent %}
|
|
<item>
|
|
<title>{{ torrent.display_name }}</title>
|
|
<link>{{ url_for('download_torrent', torrent_id=torrent.id, _external=True) }}</link>
|
|
<guid isPermaLink="true">{{ url_for('view_torrent', torrent_id=torrent.id, _external=True) }}</guid>
|
|
<pubDate>{{ torrent.created_time|rfc822 }}</pubDate>
|
|
</item>
|
|
{% else %}
|
|
<item>
|
|
<title>{{ torrent.display_name }}</title>
|
|
<link>{{ torrent.magnet_uri }}</link>
|
|
<guid isPermaLink="true">{{ url_for('view_torrent', torrent_id=torrent.id, _external=True) }}</guid>
|
|
<pubDate>{{ torrent.created_time|rfc822 }}</pubDate>
|
|
</item>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</channel>
|
|
</rss>
|