summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-02-22 20:38:45 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-02-22 20:38:45 +0100
commit3b0f78439f70ede5dd0c24af39d7eb1b79b1446c (patch)
treea5946290c13a3e85fc4e1e67493fd0f26ba9fff9 /module/plugins/accounts
parentNCryptIn: Bug fixes (diff)
downloadpyload-3b0f78439f70ede5dd0c24af39d7eb1b79b1446c.tar.xz
filesonic info prefetching + premium fix
Diffstat (limited to 'module/plugins/accounts')
-rw-r--r--module/plugins/accounts/FilesonicCom.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/module/plugins/accounts/FilesonicCom.py b/module/plugins/accounts/FilesonicCom.py
index f80a4a638..08f6ab4d2 100644
--- a/module/plugins/accounts/FilesonicCom.py
+++ b/module/plugins/accounts/FilesonicCom.py
@@ -31,7 +31,7 @@ class FilesonicCom(Account):
__author_mail__ = ("RaNaN@pyload.org")
def loadAccountInfo(self, user, req):
- src = req.load("http://www.filesonic.com/user/settings")
+ src = req.load("http://www.filesonic.com/user/settings").decode("utf8")
validuntil = re.search(r'\d+-\d+-\d+ \d+:\d+:\d+', src).group(0)
validuntil = int(mktime(strptime(validuntil, "%Y-%m-%d %H:%M:%S")))
@@ -42,8 +42,9 @@ class FilesonicCom(Account):
post_vars = {
"email": user,
"password": data["password"],
+ "rememberMe" : 1
}
- page = req.load("http://www.filesonic.com/user/login", cookies=True, post=post_vars)
+ page = req.load("http://www.filesonic.com/user/login", cookies=True, post=post_vars).decode("utf8")
- if "Provided password does not match." in page:
+ if "Provided password does not match." in page or "You must be logged in to view this page." in page:
self.wrongPassword()