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.py21
1 files changed, 15 insertions, 6 deletions
diff --git a/module/plugins/accounts/FileserveCom.py b/module/plugins/accounts/FileserveCom.py
index 5c6c15167..a5c1b333b 100644
--- a/module/plugins/accounts/FileserveCom.py
+++ b/module/plugins/accounts/FileserveCom.py
@@ -19,8 +19,11 @@ class FileserveCom(Account):
def load_account_info(self, user, req):
data = self.get_account_data(user)
- html = self.load("http://app.fileserve.com/api/login/", post={"username": user, "password": data['password'],
- "submit": "Submit+Query"}, req=req)
+ html = self.load("http://app.fileserve.com/api/login/",
+ post={"username": user,
+ "password": data['password'],
+ "submit": "Submit+Query"},
+ req=req)
res = json_loads(html)
if res['type'] == "premium":
@@ -31,8 +34,11 @@ class FileserveCom(Account):
def login(self, user, data, req):
- html = self.load("http://app.fileserve.com/api/login/", post={"username": user, "password": data['password'],
- "submit": "Submit+Query"}, req=req)
+ html = self.load("http://app.fileserve.com/api/login/",
+ post={"username": user,
+ "password": data['password'],
+ "submit" : "Submit+Query"},
+ req=req)
res = json_loads(html)
if not res['type']:
@@ -40,5 +46,8 @@ class FileserveCom(Account):
# login at fileserv html
self.load("http://www.fileserve.com/login.php",
- post={"loginUserName": user, "loginUserPassword": data['password'], "autoLogin": "checked",
- "loginFormSubmit": "Login"}, req=req)
+ post={"loginUserName": user,
+ "loginUserPassword": data['password'],
+ "autoLogin": "checked",
+ "loginFormSubmit": "Login"},
+ req=req)