summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/MegaDebridEu.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-17 03:03:26 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-17 03:03:26 +0200
commitd2e2b127651a5a44b56337eb6d9ca246c97a208a (patch)
tree46f34e2102fd44ed2f719727eb07a445e7baa77d /module/plugins/accounts/MegaDebridEu.py
parentNo camelCase style anymore (diff)
downloadpyload-d2e2b127651a5a44b56337eb6d9ca246c97a208a.tar.xz
Spare fixes and code cosmetics
Diffstat (limited to 'module/plugins/accounts/MegaDebridEu.py')
-rw-r--r--module/plugins/accounts/MegaDebridEu.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/module/plugins/accounts/MegaDebridEu.py b/module/plugins/accounts/MegaDebridEu.py
index 7a6e36f05..817dd800f 100644
--- a/module/plugins/accounts/MegaDebridEu.py
+++ b/module/plugins/accounts/MegaDebridEu.py
@@ -21,7 +21,10 @@ class MegaDebridEu(Account):
def load_account_info(self, user, req):
data = self.get_account_data(user)
jsonResponse = self.load(self.API_URL,
- get={'action': 'connectUser', 'login': user, 'password': data['password']}, req=req)
+ get={'action' : 'connectUser',
+ 'login' : user,
+ 'password': data['password']},
+ req=req)
res = json_loads(jsonResponse)
if res['response_code'] == "ok":
@@ -33,7 +36,10 @@ class MegaDebridEu(Account):
def login(self, user, data, req):
jsonResponse = self.load(self.API_URL,
- get={'action': 'connectUser', 'login': user, 'password': data['password']}, req=req)
+ get={'action' : 'connectUser',
+ 'login' : user,
+ 'password': data['password']},
+ req=req)
res = json_loads(jsonResponse)
if res['response_code'] != "ok":
self.wrong_password()