summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-25 01:15:58 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-25 01:15:58 +0200
commit29de13dc5098cc9214f3f8f111da140a22e3e2ff (patch)
treeddf95710cbc7ee67da3457b38a1e7937fda4ef21 /module/plugins/internal
parentFix error method (diff)
downloadpyload-29de13dc5098cc9214f3f8f111da140a22e3e2ff.tar.xz
Use parseTraffic instead parseFileSize in accounts
Diffstat (limited to 'module/plugins/internal')
-rw-r--r--module/plugins/internal/XFSPAccount.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/module/plugins/internal/XFSPAccount.py b/module/plugins/internal/XFSPAccount.py
index 5e2a0afc4..e54fda987 100644
--- a/module/plugins/internal/XFSPAccount.py
+++ b/module/plugins/internal/XFSPAccount.py
@@ -7,13 +7,12 @@ from time import mktime, strptime
from module.plugins.Account import Account
from module.plugins.internal.SimpleHoster import parseHtmlForm, set_cookies
-from module.utils import parseFileSize
class XFSPAccount(Account):
__name__ = "XFSPAccount"
__type__ = "account"
- __version__ = "0.15"
+ __version__ = "0.16"
__description__ = """XFileSharingPro account plugin"""
__license__ = "GPLv3"
@@ -94,7 +93,7 @@ class XFSPAccount(Account):
unit = self.TRAFFIC_LEFT_UNIT
else:
unit = None
- trafficleft = parseFileSize(traffic['S'], unit)
+ trafficleft = self.parseTraffic(traffic['S'], unit)
except:
pass