fix kickass small sizes

This commit is contained in:
Julien Veyssier 2010-12-04 12:10:42 +01:00 committed by julien
commit f0b7e14a01

View file

@ -26,7 +26,8 @@ __all__ = ['TorrentsPage']
class TorrentsPage(BasePage): class TorrentsPage(BasePage):
def unit(self, n, u): def unit(self, n, u):
m = {'KB': 1024, m = {'bytes': 1,
'KB': 1024,
'MB': 1024*1024, 'MB': 1024*1024,
'GB': 1024*1024*1024, 'GB': 1024*1024*1024,
'TB': 1024*1024*1024*1024, 'TB': 1024*1024*1024*1024,
@ -64,7 +65,8 @@ class TorrentsPage(BasePage):
class TorrentPage(BasePage): class TorrentPage(BasePage):
def unit(self, n, u): def unit(self, n, u):
m = {'KB': 1024, m = {'bytes': 1,
'KB': 1024,
'MB': 1024*1024, 'MB': 1024*1024,
'GB': 1024*1024*1024, 'GB': 1024*1024*1024,
'TB': 1024*1024*1024*1024, 'TB': 1024*1024*1024*1024,