1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-12 11:02:21 -05:00

Prettier file sizes in DisplayShow

This commit is contained in:
Simon 2015-02-21 09:48:36 +08:00
parent dc6e4c6816
commit ae2693c41c

View File

@ -381,7 +381,7 @@
#end if #end if
>Name</th> >Name</th>
#if ($sickbeard.DISPLAY_FILESIZE == True): #if ($sickbeard.DISPLAY_FILESIZE == True):
<th class="col-ep">Filesize</th> <th class="col-ep">Size</th>
#end if #end if
<th class="col-airdate">Airdate</th> <th class="col-airdate">Airdate</th>
#if $sickbeard.DOWNLOAD_URL #if $sickbeard.DOWNLOAD_URL
@ -481,8 +481,8 @@
#if ($sickbeard.DISPLAY_FILESIZE == True): #if ($sickbeard.DISPLAY_FILESIZE == True):
<td class="col-ep"> <td class="col-ep">
#if $epResult["file_size"]: #if $epResult["file_size"]:
#set $file_size = $epResult["file_size"] / 1024 / 1024 #set $file_size = $sickbeard.helpers.pretty_filesize($epResult["file_size"])
$file_size MB $file_size
#end if #end if
</td> </td>
#end if #end if