diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-08-18 22:39:07 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-08-18 22:39:07 +0200 |
commit | ab22498f73ba6376d0242c4f0a706b312cf6cdb6 (patch) | |
tree | d8d9e3051e5e8048157c852c7412d7ca0d4ffee6 /module/plugins/accounts/RapidshareCom.py | |
parent | fixes, missing file (diff) | |
download | pyload-ab22498f73ba6376d0242c4f0a706b312cf6cdb6.tar.xz |
account fixes
Diffstat (limited to 'module/plugins/accounts/RapidshareCom.py')
-rw-r--r-- | module/plugins/accounts/RapidshareCom.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/module/plugins/accounts/RapidshareCom.py b/module/plugins/accounts/RapidshareCom.py index b656bb763..c9766cd57 100644 --- a/module/plugins/accounts/RapidshareCom.py +++ b/module/plugins/accounts/RapidshareCom.py @@ -34,13 +34,13 @@ class RapidshareCom(Account): if account[0] == user: data = account[1] if not data: - return + raise Exception req = self.core.requestFactory.getRequest(self.__name__, user) api_url_base = "http://api.rapidshare.com/cgi-bin/rsapi.cgi" api_param_prem = {"sub": "getaccountdetails_v1", "type": "prem", "login": user, "password": data["password"], "withcookie": 1} src = req.load(api_url_base, cookies=False, get=api_param_prem) if src.startswith("ERROR"): - return + raise Exception fields = src.split("\n") info = {} for t in fields: @@ -54,7 +54,6 @@ class RapidshareCom(Account): 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 except: return Account.getAccountInfo(self, user) |