summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/LinksnappyCom.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-06-16 17:31:38 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-06-24 22:40:32 +0200
commitc1764e2fea0bb05164c83a876e8cd58b97f58f25 (patch)
treebe1af8dbf5542d93f1cb97f07dd1793fc7acc2df /module/plugins/accounts/LinksnappyCom.py
parent[SimpleHoster] fixurl (diff)
downloadpyload-c1764e2fea0bb05164c83a876e8cd58b97f58f25.tar.xz
Update all
Diffstat (limited to 'module/plugins/accounts/LinksnappyCom.py')
-rw-r--r--module/plugins/accounts/LinksnappyCom.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/module/plugins/accounts/LinksnappyCom.py b/module/plugins/accounts/LinksnappyCom.py
index 2b1d1aebf..4a475bd24 100644
--- a/module/plugins/accounts/LinksnappyCom.py
+++ b/module/plugins/accounts/LinksnappyCom.py
@@ -18,8 +18,8 @@ class LinksnappyCom(Account):
def loadAccountInfo(self, user, req):
data = self.getAccountData(user)
- r = req.load('http://gen.linksnappy.com/lseAPI.php',
- get={'act': 'USERDETAILS', 'username': user, 'password': hashlib.md5(data['password']).hexdigest()})
+ r = self.load('http://gen.linksnappy.com/lseAPI.php',
+ get={'act': 'USERDETAILS', 'username': user, 'password': hashlib.md5(data['password'], req=req).hexdigest()})
self.logDebug("JSON data: " + r)
@@ -50,11 +50,10 @@ class LinksnappyCom(Account):
def login(self, user, data, req):
- html = req.load("https://gen.linksnappy.com/lseAPI.php",
+ html = self.load("https://gen.linksnappy.com/lseAPI.php",
get={'act' : 'USERDETAILS',
'username': user,
- 'password': hashlib.md5(data['password']).hexdigest()},
- decode=True)
+ 'password': hashlib.md5(data['password'], req=req).hexdigest()})
if "Invalid Account Details" in html:
self.wrongPassword()