mirror of
https://gitlab.com/SIGBUS/nyaa.git
synced 2025-01-10 09:24:08 +00:00
parent
7e25e6d9b8
commit
a3422ce068
|
@ -121,7 +121,6 @@ def search(term='', user=None, sort='id', order='desc', category='0_0', quality_
|
||||||
if rss:
|
if rss:
|
||||||
sort = sort_keys['id']
|
sort = sort_keys['id']
|
||||||
order = 'desc'
|
order = 'desc'
|
||||||
page = 1
|
|
||||||
|
|
||||||
same_user = False
|
same_user = False
|
||||||
if flask.g.user:
|
if flask.g.user:
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<link rel="shortcut icon" type="image/png" href="/static/favicon.png">
|
<link rel="shortcut icon" type="image/png" href="/static/favicon.png">
|
||||||
<link rel="icon" type="image/png" href="/static/favicon.png">
|
<link rel="icon" type="image/png" href="/static/favicon.png">
|
||||||
|
<link rel="alternate" type="application/rss+xml" href="{% if rss_filter %}{{ url_for('home', page='rss', _external=True, **rss_filter) }}{% else %}{{ url_for('home', page='rss', _external=True) }}{% endif %}" />
|
||||||
|
|
||||||
<!-- Bootstrap core CSS -->
|
<!-- Bootstrap core CSS -->
|
||||||
<!--
|
<!--
|
||||||
|
|
|
@ -12,6 +12,13 @@
|
||||||
<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>
|
||||||
|
{% 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 %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</channel>
|
</channel>
|
||||||
|
|
Loading…
Reference in a new issue