mirror of
https://gitlab.com/SIGBUS/nyaa.git
synced 2024-12-22 13:09:59 +00:00
Merge pull request #4 from erengy/rss-links
Remove whitespace from RSS links
This commit is contained in:
commit
799e9dea87
|
@ -1,18 +1,14 @@
|
||||||
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
|
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
|
||||||
<channel>
|
<channel>
|
||||||
<title>{{ config.SITE_NAME }} Torrent File RSS (No magnets)</title>
|
<title>{{ config.SITE_NAME }} Torrent File RSS (No magnets)</title>
|
||||||
<description>
|
<description>RSS Feed for {{ term }}</description>
|
||||||
RSS Feed for {{ term }}
|
|
||||||
</description>
|
|
||||||
<link>{{ url_for('home', _external=True) }}</link>
|
<link>{{ url_for('home', _external=True) }}</link>
|
||||||
<atom:link href="{{ url_for('home', page='rss', _external=True) }}" rel="self" type="application/rss+xml" />
|
<atom:link href="{{ url_for('home', page='rss', _external=True) }}" rel="self" type="application/rss+xml" />
|
||||||
{% for torrent in query %}
|
{% for torrent in query %}
|
||||||
{% if torrent.has_torrent %}
|
{% if torrent.has_torrent %}
|
||||||
<item>
|
<item>
|
||||||
<title>{{ torrent.display_name }}</title>
|
<title>{{ torrent.display_name }}</title>
|
||||||
<link>
|
<link>{{ url_for('download_torrent', torrent_id=torrent.id, _external=True) }}</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>
|
<guid isPermaLink="true">{{ url_for('view_torrent', torrent_id=torrent.id, _external=True) }}</guid>
|
||||||
<pubDate>{{ torrent.created_time|rfc822 }}</pubDate>
|
<pubDate>{{ torrent.created_time|rfc822 }}</pubDate>
|
||||||
</item>
|
</item>
|
||||||
|
|
Loading…
Reference in a new issue