diff options
author | mkaay <mkaay@mkaay.de> | 2010-08-17 14:36:29 +0200 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2010-08-17 14:36:29 +0200 |
commit | c22c64c348e1fd52cc88177c4b5ff099a30a62bd (patch) | |
tree | ee5f9cf9f6f1a623dc3a44bad0737ad514efcf76 /module/plugins/accounts/RapidshareCom.py | |
parent | hotfile + freakshare fix (diff) | |
download | pyload-c22c64c348e1fd52cc88177c4b5ff099a30a62bd.tar.xz |
account update
Diffstat (limited to 'module/plugins/accounts/RapidshareCom.py')
-rw-r--r-- | module/plugins/accounts/RapidshareCom.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/module/plugins/accounts/RapidshareCom.py b/module/plugins/accounts/RapidshareCom.py index 7f5fff84d..b656bb763 100644 --- a/module/plugins/accounts/RapidshareCom.py +++ b/module/plugins/accounts/RapidshareCom.py @@ -50,7 +50,9 @@ class RapidshareCom(Account): info[k] = v out = Account.getAccountInfo(self, user) - tmp = {"validuntil":None, "login":str(info["accountid"]), "trafficleft":int(info["tskb"]), "type":self.__name__} + restkb = int(info["tskb"]) + maxtraffic = int(info["rapids"])/14 * (5*1024*1024) + restkb + tmp = {"validuntil":int(info["billeduntil"]), "trafficleft":maxtraffic if int(info["autorefill"]) else restkb, "maxtraffic":maxtraffic} out.update(tmp) return out |