summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-12-24 12:20:41 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-12-24 12:20:41 +0100
commit9538fd00584d24c871a3c6b4f47446e187348ff9 (patch)
tree0ff014bc1ef49bdaa82ebc6774761a7df2229144 /module/plugins/accounts
parentShareOnline Premium, OronCom updates (diff)
downloadpyload-9538fd00584d24c871a3c6b4f47446e187348ff9.tar.xz
fix SO for new account manager
Diffstat (limited to 'module/plugins/accounts')
-rw-r--r--module/plugins/accounts/ShareonlineBiz.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/module/plugins/accounts/ShareonlineBiz.py b/module/plugins/accounts/ShareonlineBiz.py
index 4ecd7e1c2..4dd398d6d 100644
--- a/module/plugins/accounts/ShareonlineBiz.py
+++ b/module/plugins/accounts/ShareonlineBiz.py
@@ -29,9 +29,8 @@ class ShareonlineBiz(Account):
__author_name__ = ("mkaay")
__author_mail__ = ("mkaay@mkaay.de")
- def getUserAPI(self, user, req):
- data = self.getAccountData(user)
- src = req.load("http://api.share-online.biz/account.php?username=%s&password=%s&act=userDetails" % (user, data["password"]))
+ def getUserAPI(self, req):
+ src = req.load("http://api.share-online.biz/account.php?username=%s&password=%s&act=userDetails" % (self.loginname, self.password))
info = {}
for line in src.splitlines():
key, value = line.split("=")
@@ -40,7 +39,7 @@ class ShareonlineBiz(Account):
def loadAccountInfo(self, user, req):
try:
- info = self.getUserAPI(user, req)
+ info = self.getUserAPI(req)
return {"validuntil": int(info["expire_date"]), "trafficleft": -1, "premium": not info["group"] == "Sammler"}
except:
pass