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.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/module/plugins/accounts/FourSharedCom.py b/module/plugins/accounts/FourSharedCom.py
index 3ef865a91..127f9d58a 100644
--- a/module/plugins/accounts/FourSharedCom.py
+++ b/module/plugins/accounts/FourSharedCom.py
@@ -7,7 +7,7 @@ from pyload.utils import json_loads
class FourSharedCom(Account):
__name__ = "FourSharedCom"
__type__ = "account"
- __version__ = "0.03"
+ __version__ = "0.04"
__description__ = """FourShared.com account plugin"""
__license__ = "GPLv3"
@@ -22,12 +22,14 @@ class FourSharedCom(Account):
def login(self, user, data, req):
req.cj.setCookie("4shared.com", "4langcookie", "en")
- res = req.load('http://www.4shared.com/web/login',
- post={'login': user,
- 'password': data['password'],
- 'remember': "on",
+
+ res = req.load("http://www.4shared.com/web/login",
+ post={'login' : user,
+ 'password' : data['password'],
+ 'remember' : "on",
'_remember': "on",
- 'returnTo': "http://www.4shared.com/account/home.jsp"})
+ 'returnTo' : "http://www.4shared.com/account/home.jsp"},
+ decode=True)
if 'Please log in to access your 4shared account' in res:
self.wrongPassword()