diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-04-16 17:01:39 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-04-16 17:01:39 +0200 |
commit | 84169f4862fa257e0a8a47e5f3578e9ec97ccf4f (patch) | |
tree | dd18f97f02637f667b803796f2b456836204a5d5 /pyload/plugin/account/ShareonlineBiz.py | |
parent | Merge branch 'stable' into 0.4.10 (diff) | |
download | pyload-84169f4862fa257e0a8a47e5f3578e9ec97ccf4f.tar.xz |
Plugins cleanup
Diffstat (limited to 'pyload/plugin/account/ShareonlineBiz.py')
-rw-r--r-- | pyload/plugin/account/ShareonlineBiz.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/pyload/plugin/account/ShareonlineBiz.py b/pyload/plugin/account/ShareonlineBiz.py index a27d52736..06b2818c9 100644 --- a/pyload/plugin/account/ShareonlineBiz.py +++ b/pyload/plugin/account/ShareonlineBiz.py @@ -27,7 +27,7 @@ class ShareonlineBiz(Account): premium = False validuntil = None trafficleft = -1 - maxtraffic = 100 * 1024 * 1024 * 1024 #: 100 GB + maxtraffic = 100 * 2 ** 30 #: 100 GB api = {} for line in self.api_response(user, req).splitlines(): @@ -48,9 +48,6 @@ class ShareonlineBiz(Account): maxtraffic = max(maxtraffic, traffic) trafficleft = maxtraffic - traffic - maxtraffic /= 1024 #@TODO: Remove `/ 1024` in 0.4.10 - trafficleft /= 1024 #@TODO: Remove `/ 1024` in 0.4.10 - return {'premium' : premium, 'validuntil' : validuntil, 'trafficleft': trafficleft, |