diff options
author | 2015-07-17 03:03:26 +0200 | |
---|---|---|
committer | 2015-07-17 03:03:26 +0200 | |
commit | d2e2b127651a5a44b56337eb6d9ca246c97a208a (patch) | |
tree | 46f34e2102fd44ed2f719727eb07a445e7baa77d /module/plugins/accounts/LinksnappyCom.py | |
parent | No camelCase style anymore (diff) | |
download | pyload-d2e2b127651a5a44b56337eb6d9ca246c97a208a.tar.xz |
Spare fixes and code cosmetics
Diffstat (limited to 'module/plugins/accounts/LinksnappyCom.py')
-rw-r--r-- | module/plugins/accounts/LinksnappyCom.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/module/plugins/accounts/LinksnappyCom.py b/module/plugins/accounts/LinksnappyCom.py index 466495ac0..aa7db79e0 100644 --- a/module/plugins/accounts/LinksnappyCom.py +++ b/module/plugins/accounts/LinksnappyCom.py @@ -19,7 +19,10 @@ class LinksnappyCom(Account): def load_account_info(self, user, req): data = self.get_account_data(user) r = self.load('http://gen.linksnappy.com/lseAPI.php', - get={'act': 'USERDETAILS', 'username': user, 'password': hashlib.md5(data['password'], req=req).hexdigest()}) + get={'act' : 'USERDETAILS', + 'username': user, + 'password': hashlib.md5(data['password'], + req=req).hexdigest()}) self.log_debug("JSON data: " + r) @@ -51,9 +54,10 @@ class LinksnappyCom(Account): def login(self, user, data, req): html = self.load("https://gen.linksnappy.com/lseAPI.php", - get={'act' : 'USERDETAILS', - 'username': user, - 'password': hashlib.md5(data['password'], req=req).hexdigest()}) + get={'act' : 'USERDETAILS', + 'username': user, + 'password': hashlib.md5(data['password'], + req=req).hexdigest()}) if "Invalid Account Details" in html: self.wrong_password() |