diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-07-19 10:59:52 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-07-19 10:59:52 +0200 |
commit | ff9383bfe06d14d23bc0ed6af79aa8967965d078 (patch) | |
tree | 78a09f0c47eb392d6ca3c8bf948dc9a99709861b /module/plugins/accounts/UploadheroCom.py | |
parent | Fix addons (diff) | |
download | pyload-ff9383bfe06d14d23bc0ed6af79aa8967965d078.tar.xz |
Code cosmetics (3)
Diffstat (limited to 'module/plugins/accounts/UploadheroCom.py')
-rw-r--r-- | module/plugins/accounts/UploadheroCom.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/accounts/UploadheroCom.py b/module/plugins/accounts/UploadheroCom.py index bb5eaa6c1..df323d71c 100644 --- a/module/plugins/accounts/UploadheroCom.py +++ b/module/plugins/accounts/UploadheroCom.py @@ -26,17 +26,17 @@ class UploadheroCom(Account): if premium_pattern.search(html): end_date = datetime.date.today() + datetime.timedelta(days=int(premium_pattern.search(html).group(1))) end_date = time.mktime(future.timetuple()) - account_info = {"validuntil": end_date, "trafficleft": -1, "premium": True} + account_info = {'validuntil': end_date, 'trafficleft': -1, 'premium': True} else: - account_info = {"validuntil": -1, "trafficleft": -1, "premium": False} + account_info = {'validuntil': -1, 'trafficleft': -1, 'premium': False} return account_info def login(self, user, data, req): html = self.load("http://uploadhero.co/lib/connexion.php", - post={"pseudo_login": user, - "password_login": data['password']}) + post={'pseudo_login': user, + 'password_login': data['password']}) if "mot de passe invalide" in html: self.wrong_password() |