summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/ShareonlineBiz.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-02-19 17:34:57 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-02-19 17:34:57 +0100
commit6dd1e89769c923cbd38bf53d3c97a4031d76e2ad (patch)
treead0c811e8c0f48f1b29677627d9743dd2855089d /module/plugins/accounts/ShareonlineBiz.py
parentclosing all shareonline request correctly (diff)
downloadpyload-6dd1e89769c923cbd38bf53d3c97a4031d76e2ad.tar.xz
fixes last commit
Diffstat (limited to 'module/plugins/accounts/ShareonlineBiz.py')
-rw-r--r--module/plugins/accounts/ShareonlineBiz.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/accounts/ShareonlineBiz.py b/module/plugins/accounts/ShareonlineBiz.py
index ac8b6a2b3..967142204 100644
--- a/module/plugins/accounts/ShareonlineBiz.py
+++ b/module/plugins/accounts/ShareonlineBiz.py
@@ -29,7 +29,7 @@ class ShareonlineBiz(Account):
__author_name__ = ("mkaay")
__author_mail__ = ("mkaay@mkaay.de")
- def getUserAPI(self, req):
+ def getUserAPI(self, user, req):
src = req.load("http://api.share-online.biz/account.php?username=%s&password=%s&act=userDetails" % (user, self.accounts[user]["password"]))
info = {}
for line in src.splitlines():
@@ -39,7 +39,7 @@ class ShareonlineBiz(Account):
def loadAccountInfo(self, user, req):
try:
- info = self.getUserAPI(req)
+ info = self.getUserAPI(user, req)
return {"validuntil": int(info["expire_date"]), "trafficleft": -1, "premium": not info["group"] == "Sammler"}
except:
pass