1
0
Fork 0
mirror of https://gitlab.com/SIGBUS/nyaa.git synced 2024-12-22 08:00:00 +00:00

Use formatted file size

since that what was used by Nyaa.
This commit is contained in:
Kfir Hadas 2017-05-14 18:57:57 +03:00
parent 837ecde795
commit c691087730

View file

@ -26,7 +26,7 @@
<pubDate>{{ torrent.created_time|rfc822 }}</pubDate>
{% endif %}
<category>{{ torrent.main_category.name }} - {{ torrent.sub_category.name }}</category>
<size>{{ torrent.filesize }}</size>
<size>{{ torrent.filesize | filesizeformat(True) }}</size>
<seeders>{{ torrent.stats.seed_count }}</seeders>
<leechers>{{ torrent.stats.leech_count }}</leechers>
<downloads>{{ torrent.stats.download_count }}</downloads>