Browse Source

[enh] display filesize greater 1TB

Thomas Pointhuber 10 years ago
parent
commit
eb6f3348c4
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      searx/templates/oscar/result_templates/torrent.html

+ 2
- 1
searx/templates/oscar/result_templates/torrent.html View File

@@ -11,7 +11,8 @@
11 11
         {% if result.filesize < 1024 %}{{ result.filesize }} Byte
12 12
         {% elif result.filesize < 1024*1024 %}{{ '{0:0.2f}'.format(result.filesize/1024) }} kb
13 13
         {% elif result.filesize < 1024*1024*1024 %}{{ '{0:0.2f}'.format(result.filesize/1024/1024) }} MB
14
-        {% elif result.filesize < 1024*1024*1024*1024 %}{{ '{0:0.2f}'.format(result.filesize/1024/1024/1024) }} GB{% endif %}
14
+        {% elif result.filesize < 1024*1024*1024*1024 %}{{ '{0:0.2f}'.format(result.filesize/1024/1024/1024) }} GB
15
+        {% else %}{{ '{0:0.2f}'.format(result.filesize/1024/1024/1024/1024) }} TB{% endif %}
15 16
     </span>{% endif %}
16 17
 {% if result.files %}</br>{{ icon('file') }} {{ _('Number of Files') }} <span class="badge">{{ result.files }}</span>{% endif %}</p>
17 18
 <p class="result-content">