From b1759bc440cd6013837697eb8de540914f693ffd Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Tue, 7 Jul 2015 01:23:55 +0200 Subject: No camelCase style anymore --- module/plugins/accounts/UploadheroCom.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'module/plugins/accounts/UploadheroCom.py') diff --git a/module/plugins/accounts/UploadheroCom.py b/module/plugins/accounts/UploadheroCom.py index 598b7ac57..b72102300 100644 --- a/module/plugins/accounts/UploadheroCom.py +++ b/module/plugins/accounts/UploadheroCom.py @@ -10,17 +10,17 @@ from module.plugins.internal.Account import Account class UploadheroCom(Account): __name__ = "UploadheroCom" __type__ = "account" - __version__ = "0.22" + __version__ = "0.23" __description__ = """Uploadhero.co account plugin""" __license__ = "GPLv3" __authors__ = [("mcmyst", "mcmyst@hotmail.fr")] - def loadAccountInfo(self, user, req): + def load_account_info(self, user, req): premium_pattern = re.compile('Il vous reste (\d+) jours premium') - data = self.getAccountData(user) + data = self.get_account_data(user) html = self.load("http://uploadhero.co/my-account", req=req) if premium_pattern.search(html): @@ -38,4 +38,4 @@ class UploadheroCom(Account): post={"pseudo_login": user, "password_login": data['password']}, req=req) if "mot de passe invalide" in html: - self.wrongPassword() + self.wrong_password() -- cgit v1.2.3