From c22c64c348e1fd52cc88177c4b5ff099a30a62bd Mon Sep 17 00:00:00 2001 From: mkaay Date: Tue, 17 Aug 2010 14:36:29 +0200 Subject: account update --- module/plugins/accounts/RapidshareCom.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'module/plugins/accounts/RapidshareCom.py') 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 -- cgit v1.2.3