summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-26 04:27:41 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-26 04:27:41 +0100
commit136f63dc39603814b215606f888fb2e639021277 (patch)
tree1f81247c40e63af189533e36ff1429b854d15b15 /module/plugins/accounts
parent[AlldebridCom] Fix checkFile (diff)
downloadpyload-136f63dc39603814b215606f888fb2e639021277.tar.xz
Spare code fixes
Diffstat (limited to 'module/plugins/accounts')
-rw-r--r--module/plugins/accounts/ShareonlineBiz.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/accounts/ShareonlineBiz.py b/module/plugins/accounts/ShareonlineBiz.py
index 596be9b7c..49afa12b8 100644
--- a/module/plugins/accounts/ShareonlineBiz.py
+++ b/module/plugins/accounts/ShareonlineBiz.py
@@ -16,7 +16,7 @@ class ShareonlineBiz(Account):
def getUserAPI(self, user, req):
return req.load("http://api.share-online.biz/account.php",
- {"username": user, "password": self.accounts[user]['password'], "act": "userDetails"})
+ get={"username": user, "password": self.accounts[user]['password'], 'act': "userDetails"})
def loadAccountInfo(self, user, req):
@@ -34,9 +34,9 @@ class ShareonlineBiz(Account):
if "a" in info and info['a'].lower() != "not_available":
req.cj.setCookie("share-online.biz", "a", info['a'])
- return {"validuntil": float(info['expire_date']) if "expire_date" in info else -1,
+ return {"validuntil" : float(info['expire_date']) if "expire_date" in info else -1,
"trafficleft": -1,
- "premium": True if ("dl" in info or "a" in info) and (info['group'] != "Sammler") else False}
+ "premium" : True if ("dl" in info or "a" in info) and (info['group'] != "Sammler") else False}
def login(self, user, data, req):