summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/UploadheroCom.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-07 01:23:55 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-07 01:23:55 +0200
commitb1759bc440cd6013837697eb8de540914f693ffd (patch)
treed170caf63d7f65e44d23ea2d91a65759a1665928 /module/plugins/accounts/UploadheroCom.py
parent[Plugin] Fix decoding in load method (diff)
downloadpyload-b1759bc440cd6013837697eb8de540914f693ffd.tar.xz
No camelCase style anymore
Diffstat (limited to 'module/plugins/accounts/UploadheroCom.py')
-rw-r--r--module/plugins/accounts/UploadheroCom.py8
1 files changed, 4 insertions, 4 deletions
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 <span class="bleu">(\d+)</span> 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()