RSS: Fix #2 #5 and #12

This commit is contained in:
nyaadev 2017-05-13 16:14:00 +02:00
parent 7e25e6d9b8
commit a3422ce068
3 changed files with 8 additions and 1 deletions

View File

@ -121,7 +121,6 @@ def search(term='', user=None, sort='id', order='desc', category='0_0', quality_
if rss:
sort = sort_keys['id']
order = 'desc'
page = 1
same_user = False
if flask.g.user:

View File

@ -8,6 +8,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="shortcut 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 -->
<!--

View File

@ -12,6 +12,13 @@
<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>