summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/FileserveCom.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/accounts/FileserveCom.py')
-rw-r--r--module/plugins/accounts/FileserveCom.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/module/plugins/accounts/FileserveCom.py b/module/plugins/accounts/FileserveCom.py
index 27cad18bd..793d240cc 100644
--- a/module/plugins/accounts/FileserveCom.py
+++ b/module/plugins/accounts/FileserveCom.py
@@ -29,8 +29,7 @@ class FileserveCom(Account):
__author_name__ = ("mkaay")
__author_mail__ = ("mkaay@mkaay.de")
- def loadAccountInfo(self, user):
- req = self.getAccountRequest(user)
+ def loadAccountInfo(self, user, req):
src = req.load("http://fileserve.com/dashboard.php", cookies=True)
@@ -43,8 +42,8 @@ class FileserveCom(Account):
tmp = {"trafficleft":-1}
return tmp
- def login(self, user, data):
- req = self.getAccountRequest(user)
+ def login(self, user, data, req):
+
req.load("http://fileserve.com/login.php",
post={"loginUserName": user, "loginUserPassword": data["password"],
"autoLogin": "on", "loginFormSubmit": "Login"}, cookies=True)