diff options
Diffstat (limited to 'module/plugins/accounts/FileserveCom.py')
-rw-r--r-- | module/plugins/accounts/FileserveCom.py | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/module/plugins/accounts/FileserveCom.py b/module/plugins/accounts/FileserveCom.py index edbf4a1cf..8a77325d4 100644 --- a/module/plugins/accounts/FileserveCom.py +++ b/module/plugins/accounts/FileserveCom.py @@ -20,23 +20,23 @@ class FileserveCom(Account): data = self.get_account_data(user) html = self.load("http://app.fileserve.com/api/login/", - post={"username": user, - "password": data['password'], - "submit": "Submit+Query"}) + post={'username': user, + 'password': data['password'], + 'submit': "Submit+Query"}) res = json_loads(html) if res['type'] == "premium": validuntil = time.mktime(time.strptime(res['expireTime'], "%Y-%m-%d %H:%M:%S")) - return {"trafficleft": res['traffic'], "validuntil": validuntil} + return {'trafficleft': res['traffic'], 'validuntil': validuntil} else: - return {"premium": False, "trafficleft": None, "validuntil": None} + return {'premium': False, 'trafficleft': None, 'validuntil': None} def login(self, user, data, req): html = self.load("http://app.fileserve.com/api/login/", - post={"username": user, - "password": data['password'], - "submit" : "Submit+Query"}) + post={'username': user, + 'password': data['password'], + 'submit' : "Submit+Query"}) res = json_loads(html) if not res['type']: @@ -44,7 +44,7 @@ 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"}) + post={'loginUserName' : user, + 'loginUserPassword': data['password'], + 'autoLogin' : "checked", + 'loginFormSubmit' : "Login"}) |