summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/MultishareCz.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/MultishareCz.py
parent[Plugin] Fix decoding in load method (diff)
downloadpyload-b1759bc440cd6013837697eb8de540914f693ffd.tar.xz
No camelCase style anymore
Diffstat (limited to 'module/plugins/accounts/MultishareCz.py')
-rw-r--r--module/plugins/accounts/MultishareCz.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/module/plugins/accounts/MultishareCz.py b/module/plugins/accounts/MultishareCz.py
index be947f7f2..ddb605ac7 100644
--- a/module/plugins/accounts/MultishareCz.py
+++ b/module/plugins/accounts/MultishareCz.py
@@ -8,7 +8,7 @@ from module.plugins.internal.Account import Account
class MultishareCz(Account):
__name__ = "MultishareCz"
__type__ = "account"
- __version__ = "0.06"
+ __version__ = "0.07"
__description__ = """Multishare.cz account plugin"""
__license__ = "GPLv3"
@@ -19,12 +19,12 @@ class MultishareCz(Account):
ACCOUNT_INFO_PATTERN = r'<input type="hidden" id="(u_ID|u_hash)" name=".+?" value="(.+?)">'
- def loadAccountInfo(self, user, req):
- #self.relogin(user)
+ def load_account_info(self, user, req):
+ # self.relogin(user)
html = self.load("http://www.multishare.cz/profil/", req=req)
m = re.search(self.TRAFFIC_LEFT_PATTERN, html)
- trafficleft = self.parseTraffic(m.group('S') + m.group('U')) if m else 0
+ trafficleft = self.parse_traffic(m.group('S') + m.group('U')) if m else 0
self.premium = True if trafficleft else False
html = self.load("http://www.multishare.cz/", req=req)
@@ -40,4 +40,4 @@ class MultishareCz(Account):
"jmeno": user}, req=req)
if '<div class="akce-chyba akce">' in html:
- self.wrongPassword()
+ self.wrong_password()