summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/ShareonlineBiz.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-25 09:34:18 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-25 09:34:18 +0200
commita95c217627a1cb651b24e69f20640df40797aff9 (patch)
tree63fcbffd55b704b461446c1724022e76373dac12 /module/plugins/accounts/ShareonlineBiz.py
parentAccount rewritten (diff)
downloadpyload-a95c217627a1cb651b24e69f20640df40797aff9.tar.xz
Account rewritten (2)
Diffstat (limited to 'module/plugins/accounts/ShareonlineBiz.py')
-rw-r--r--module/plugins/accounts/ShareonlineBiz.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/module/plugins/accounts/ShareonlineBiz.py b/module/plugins/accounts/ShareonlineBiz.py
index 85cdfecd9..31a1a24c6 100644
--- a/module/plugins/accounts/ShareonlineBiz.py
+++ b/module/plugins/accounts/ShareonlineBiz.py
@@ -16,12 +16,12 @@ class ShareonlineBiz(Account):
__authors__ = [("Walter Purcaro", "vuolter@gmail.com")]
- def api_response(self, user, req):
+ def api_response(self, user, password, req):
return self.load("http://api.share-online.biz/cgi-bin",
get={'q' : "userdetails",
'aux' : "traffic",
'username': user,
- 'password': self.get_data(user)['password']})
+ 'password': password})
def parse_info(self, user, password, data, req):
@@ -31,7 +31,7 @@ class ShareonlineBiz(Account):
maxtraffic = 100 * 1024 * 1024 * 1024 #: 100 GB
api = {}
- for line in self.api_response(user, req).splitlines():
+ for line in self.api_response(user, password, req).splitlines():
if "=" in line:
key, value = line.split("=")
api[key] = value
@@ -62,8 +62,8 @@ class ShareonlineBiz(Account):
def login(self, user, password, data, req):
- html = self.api_response(user, req)
+ html = self.api_response(user, password, req)
err = re.search(r'\*\*(.+?)\*\*', html)
if err:
self.log_error(err.group(1).strip())
- self.fail()
+ self.login_fail()