Change the episodes downloaded stat to display e.g. 2843 / 2844 as 99.9% instead of rounding to 100%.

This commit is contained in:
JackDandy 2015-03-17 18:58:19 +00:00
parent 0736ade54d
commit d20afa0515
2 changed files with 3 additions and 1 deletions

View file

@ -56,6 +56,7 @@
config/Post Processing/File Handling
* Remove redundant "Skip remove detection" from the config/Post Processing/File Handling page
* Change to highlight the current selected item in combos on page config/Post Processing
* Change the episodes downloaded stat to display e.g. 2843 / 2844 as 99.9% instead of rounding to 100%
[develop changelog]
* Fix traceback error when using the menu item Manage/Update Kodi

View file

@ -1,5 +1,6 @@
#import sickbeard
#import datetime
#import re
#from sickbeard import db, sbdatetime
#from sickbeard.common import *
@ -37,7 +38,7 @@
#set $ep_downloaded = 0
#set $ep_total = 0
#end if
#set $ep_percentage = '' if $ep_total == 0 else '(<span class="footerhighlight">{:.1%}</span>)'.format(float($ep_downloaded)/float($ep_total))
#set $ep_percentage = '' if $ep_total == 0 else '(<span class="footerhighlight">%s%%</span>)' % re.sub(r'(\d+)(\.\d)\d+', r'\1\2', str((float($ep_downloaded)/float($ep_total))*100))
#try
#set $localRoot = $sbRoot