summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/FilerNet.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/FilerNet.py
parent[SimpleHoster] fixurl (diff)
downloadpyload-c1764e2fea0bb05164c83a876e8cd58b97f58f25.tar.xz
Update all
Diffstat (limited to 'module/plugins/accounts/FilerNet.py')
-rw-r--r--module/plugins/accounts/FilerNet.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/module/plugins/accounts/FilerNet.py b/module/plugins/accounts/FilerNet.py
index f77ac5197..aca09a7ed 100644
--- a/module/plugins/accounts/FilerNet.py
+++ b/module/plugins/accounts/FilerNet.py
@@ -23,7 +23,7 @@ class FilerNet(Account):
def loadAccountInfo(self, user, req):
- html = req.load("https://filer.net/profile")
+ html = self.load("https://filer.net/profile", req=req)
# Free user
if re.search(self.FREE_PATTERN, html):
@@ -43,17 +43,16 @@ class FilerNet(Account):
def login(self, user, data, req):
- html = req.load("https://filer.net/login", decode=True)
+ html = self.load("https://filer.net/login", req=req)
token = re.search(self.TOKEN_PATTERN, html).group(1)
- html = req.load("https://filer.net/login_check",
+ html = self.load("https://filer.net/login_check",
post={"_username" : user,
"_password" : data['password'],
"_remember_me": "on",
"_csrf_token" : token,
- "_target_path": "https://filer.net/"},
- decode=True)
+ "_target_path": "https://filer.net/"}, req=req)
if 'Logout' not in html:
self.wrongPassword()