diff options
Diffstat (limited to 'module/plugins/accounts/UploadheroCom.py')
-rw-r--r-- | module/plugins/accounts/UploadheroCom.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/module/plugins/accounts/UploadheroCom.py b/module/plugins/accounts/UploadheroCom.py index e9bad9273..0b82f0e5a 100644 --- a/module/plugins/accounts/UploadheroCom.py +++ b/module/plugins/accounts/UploadheroCom.py @@ -18,10 +18,10 @@ class UploadheroCom(Account): __authors__ = [("mcmyst", "mcmyst@hotmail.fr")] - def load_account_info(self, user, req): + def parse_info(self, user, password, data, req): premium_pattern = re.compile('Il vous reste <span class="bleu">(\d+)</span> jours premium') - data = self.get_account_data(user) + data = self.get_data(user) html = self.load("http://uploadhero.co/my-account") if premium_pattern.search(html): @@ -34,10 +34,10 @@ class UploadheroCom(Account): return account_info - def login(self, user, data, req): + def login(self, user, password, data, req): html = self.load("http://uploadhero.co/lib/connexion.php", post={'pseudo_login': user, - 'password_login': data['password']}) + 'password_login': password}) if "mot de passe invalide" in html: - self.wrong_password() + self.fail() |