summaryrefslogtreecommitdiff
path: root/searx/templates/simple/result_templates
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2019-12-02 13:09:09 +0000
committerGitHub <noreply@github.com>2019-12-02 13:09:09 +0000
commit20da8f2cbff4b862e02c369cd98c608e674a70aa (patch)
treebaf29682877aad094a5ae4bbffd3d7f0a8aa8932 /searx/templates/simple/result_templates
parent349697e8030010cb19190a2d2d6cb395da653c81 (diff)
parent9299355570e32c4d24d7274d716eca1a93119d13 (diff)
Merge pull request #1754 from MarcAbonce/seedpeer
Add Seedpeer again
Diffstat (limited to 'searx/templates/simple/result_templates')
-rw-r--r--searx/templates/simple/result_templates/torrent.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/templates/simple/result_templates/torrent.html b/searx/templates/simple/result_templates/torrent.html
index 3c7fd15e8..71c775bc9 100644
--- a/searx/templates/simple/result_templates/torrent.html
+++ b/searx/templates/simple/result_templates/torrent.html
@@ -6,7 +6,7 @@
{% if result.magnetlink %}<p class="altlink"> &bull; {{ result_link(result.magnetlink, icon('magnet') + _('magnet link'), "magnetlink") }}</p>{% endif %}
{% if result.torrentfile %}<p class="altlink"> &bull; {{ result_link(result.torrentfile, icon('download-alt') + _('torrent file'), "torrentfile") }}</p>{% endif %}
-{% if result.seed %}<p class="stat"> &bull; {{ icon('arrow-swap') }} {{ _('Seeder') }} <span class="badge">{{ result.seed }}</span> &bull; {{ _('Leecher') }} <span class="badge">{{ result.leech }}</span></p>{% endif %}
+{% if result.seed is defined %}<p class="stat"> &bull; {{ icon('arrow-swap') }} {{ _('Seeder') }} <span class="badge">{{ result.seed }}</span> &bull; {{ _('Leecher') }} <span class="badge">{{ result.leech }}</span></p>{% endif %}
{%- if result.filesize %}<p class="stat">{{ icon('floppy-disk') }} {{ _('Filesize') }}<span class="badge">
{%- if result.filesize < 1024 %}{{ result.filesize }} {{ _('Bytes') }}