summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/FourSharedCom.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/accounts/FourSharedCom.py')
-rw-r--r--module/plugins/accounts/FourSharedCom.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/module/plugins/accounts/FourSharedCom.py b/module/plugins/accounts/FourSharedCom.py
index 054f0d3a1..041671b9a 100644
--- a/module/plugins/accounts/FourSharedCom.py
+++ b/module/plugins/accounts/FourSharedCom.py
@@ -22,13 +22,12 @@ class FourSharedCom(Account):
def login(self, user, data, req):
req.cj.setCookie("4shared.com", "4langcookie", "en")
- res = req.load("https://www.4shared.com/web/login",
+ res = self.load("https://www.4shared.com/web/login",
post={'login' : user,
'password' : data['password'],
'remember' : "on",
'_remember': "on",
- 'returnTo' : "http://www.4shared.com/account/home.jsp"},
- decode=True)
+ 'returnTo' : "http://www.4shared.com/account/home.jsp"}, req=req)
if 'Please log in to access your 4shared account' in res:
self.wrongPassword()