{{ config.SITE_NAME }} - {{ term }} - {% if not magnet_links %}Torrent File{% else %}Magnet URI{% endif %} RSS RSS Feed for {{ term }} {{ url_for('main.home', _external=True) }} {% for torrent in torrent_query %} {{ torrent.display_name }} {% if use_elastic %} {# ElasticSearch Torrent instances #} {% if torrent.has_torrent and not magnet_links %} {{ url_for('torrents.download', torrent_id=torrent.meta.id, _external=True) }} {% else %} {{ create_magnet_from_es_torrent(torrent) }} {% endif %} {{ url_for('torrents.view', torrent_id=torrent.meta.id, _external=True) }} {{ torrent.created_time|rfc822_es }} {{- torrent.seed_count }} {{- torrent.leech_count }} {{- torrent.download_count }} {{- torrent.info_hash }} {% else %} {# Database Torrent rows #} {% if torrent.has_torrent and not magnet_links %} {{ url_for('torrents.download', torrent_id=torrent.id, _external=True) }} {% else %} {{ torrent.magnet_uri }} {% endif %} {{ url_for('torrents.view', torrent_id=torrent.id, _external=True) }} {{ torrent.created_time|rfc822 }} {{- torrent.stats.seed_count }} {{- torrent.stats.leech_count }} {{- torrent.stats.download_count }} {{- torrent.info_hash_as_hex }} {% endif %} {% set cat_id = use_elastic and ((torrent.main_category_id|string) + '_' + (torrent.sub_category_id|string)) or torrent.sub_category.id_as_string %} {{- cat_id }} {{- category_name(cat_id) }} {{- torrent.filesize | filesizeformat(True) }} {{- torrent.comment_count }} {{- torrent.trusted and 'Yes' or 'No' }} {{- torrent.remake and 'Yes' or 'No' }} {% set torrent_id = use_elastic and torrent.meta.id or torrent.id %} #{{ torrent_id }} | {{ torrent.display_name }} | {{ torrent.filesize | filesizeformat(True) }} | {{ category_name(cat_id) }} | {{ use_elastic and torrent.info_hash or torrent.info_hash_as_hex | upper }}]]> {% endfor %}