summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/RapidshareCom.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-18 22:39:07 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-18 22:39:07 +0200
commitab22498f73ba6376d0242c4f0a706b312cf6cdb6 (patch)
treed8d9e3051e5e8048157c852c7412d7ca0d4ffee6 /module/plugins/accounts/RapidshareCom.py
parentfixes, missing file (diff)
downloadpyload-ab22498f73ba6376d0242c4f0a706b312cf6cdb6.tar.xz
account fixes
Diffstat (limited to 'module/plugins/accounts/RapidshareCom.py')
-rw-r--r--module/plugins/accounts/RapidshareCom.py5
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)