summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/HotfileCom.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/accounts/HotfileCom.py')
-rw-r--r--module/plugins/accounts/HotfileCom.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/module/plugins/accounts/HotfileCom.py b/module/plugins/accounts/HotfileCom.py
index f053b7720..fd675b7c6 100644
--- a/module/plugins/accounts/HotfileCom.py
+++ b/module/plugins/accounts/HotfileCom.py
@@ -40,12 +40,12 @@ class HotfileCom(Account):
info[key] = value
if info['is_premium'] == '1':
- info["premium_until"] = info["premium_until"].replace("T", " ")
- zone = info["premium_until"][19:]
- info["premium_until"] = info["premium_until"][:19]
+ info['premium_until'] = info['premium_until'].replace("T", " ")
+ zone = info['premium_until'][19:]
+ info['premium_until'] = info['premium_until'][:19]
zone = int(zone[:3])
- validuntil = int(mktime(strptime(info["premium_until"], "%Y-%m-%d %H:%M:%S"))) + (zone * 60 * 60)
+ validuntil = int(mktime(strptime(info['premium_until'], "%Y-%m-%d %H:%M:%S"))) + (zone * 60 * 60)
tmp = {"validuntil": validuntil, "trafficleft": -1, "premium": True}
elif info['is_premium'] == '0':
@@ -63,7 +63,7 @@ class HotfileCom(Account):
digest = req.load("http://api.hotfile.com/", post={"action": "getdigest"})
h = hashlib.md5()
- h.update(data["password"])
+ h.update(data['password'])
hp = h.hexdigest()
h = hashlib.md5()
h.update(hp)
@@ -80,7 +80,7 @@ class HotfileCom(Account):
cj = self.getAccountCookies(user)
cj.setCookie("hotfile.com", "lang", "en")
req.load("http://hotfile.com/", cookies=True)
- page = req.load("http://hotfile.com/login.php", post={"returnto": "/", "user": user, "pass": data["password"]},
+ page = req.load("http://hotfile.com/login.php", post={"returnto": "/", "user": user, "pass": data['password']},
cookies=True)
if "Bad username/password" in page: