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

Merge pull request #1378 from andofrjando/prettier-filesize-in-DisplayShow

Prettier file sizes in DisplayShow
This commit is contained in:
Alexandre Beloin 2015-02-22 21:27:39 -05:00
commit 4db476b2da

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