2017-05-12 18:51:49 +00:00
|
|
|
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
|
|
|
|
<channel>
|
|
|
|
<title>{{ config.SITE_NAME }} Torrent File RSS (No magnets)</title>
|
2017-05-13 06:06:31 +00:00
|
|
|
<description>RSS Feed for {{ term }}</description>
|
2017-05-12 23:59:52 +00:00
|
|
|
<link>{{ url_for('home', _external=True) }}</link>
|
|
|
|
<atom:link href="{{ url_for('home', page='rss', _external=True) }}" rel="self" type="application/rss+xml" />
|
2017-05-16 06:51:58 +00:00
|
|
|
{% for torrent in torrent_query %}
|
2017-05-12 18:51:49 +00:00
|
|
|
{% if torrent.has_torrent %}
|
|
|
|
<item>
|
|
|
|
<title>{{ torrent.display_name }}</title>
|
2017-05-16 06:51:58 +00:00
|
|
|
{% if use_elastic %}
|
|
|
|
<link>{{ url_for('download_torrent', torrent_id=torrent.meta.id, _external=True) }}</link>
|
|
|
|
<guid isPermaLink="true">{{ url_for('view_torrent', torrent_id=torrent.meta.id, _external=True) }}</guid>
|
|
|
|
<pubDate>{{ torrent.created_time|rfc822_es }}</pubDate>
|
|
|
|
{% else %}
|
2017-05-13 03:23:58 +00:00
|
|
|
<link>{{ url_for('download_torrent', torrent_id=torrent.id, _external=True) }}</link>
|
2017-05-12 23:59:52 +00:00
|
|
|
<guid isPermaLink="true">{{ url_for('view_torrent', torrent_id=torrent.id, _external=True) }}</guid>
|
2017-05-12 18:51:49 +00:00
|
|
|
<pubDate>{{ torrent.created_time|rfc822 }}</pubDate>
|
2017-05-16 06:51:58 +00:00
|
|
|
{% endif %}
|
2017-05-12 18:51:49 +00:00
|
|
|
</item>
|
2017-05-13 14:14:00 +00:00
|
|
|
{% else %}
|
|
|
|
<item>
|
|
|
|
<title>{{ torrent.display_name }}</title>
|
2017-05-16 06:51:58 +00:00
|
|
|
{% if use_elastic %}
|
2017-05-16 07:46:25 +00:00
|
|
|
<link>{{ create_magnet_from_info(torrent.display_name, torrent.info_hash) }}</link>
|
2017-05-16 06:51:58 +00:00
|
|
|
<guid isPermaLink="true">{{ url_for('view_torrent', torrent_id=torrent.meta.id, _external=True) }}</guid>
|
|
|
|
<pubDate>{{ torrent.created_time|rfc822_es }}</pubDate>
|
|
|
|
{% else %}
|
2017-05-13 14:14:00 +00:00
|
|
|
<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>
|
2017-05-16 06:51:58 +00:00
|
|
|
{% endif %}
|
2017-05-13 14:14:00 +00:00
|
|
|
</item>
|
2017-05-12 18:51:49 +00:00
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</channel>
|
|
|
|
</rss>
|