summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/QuickshareCz.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/accounts/QuickshareCz.py')
-rw-r--r--module/plugins/accounts/QuickshareCz.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/accounts/QuickshareCz.py b/module/plugins/accounts/QuickshareCz.py
index c3cfe6f6f..17d3bfce8 100644
--- a/module/plugins/accounts/QuickshareCz.py
+++ b/module/plugins/accounts/QuickshareCz.py
@@ -8,7 +8,7 @@ from module.plugins.internal.Account import Account
class QuickshareCz(Account):
__name__ = "QuickshareCz"
__type__ = "account"
- __version__ = "0.04"
+ __version__ = "0.05"
__description__ = """Quickshare.cz account plugin"""
__license__ = "GPLv3"
@@ -18,12 +18,12 @@ class QuickshareCz(Account):
TRAFFIC_LEFT_PATTERN = r'Stav kreditu: <strong>(.+?)</strong>'
- def loadAccountInfo(self, user, req):
+ def load_account_info(self, user, req):
html = self.load("http://www.quickshare.cz/premium", req=req)
m = re.search(self.TRAFFIC_LEFT_PATTERN, html)
if m:
- trafficleft = self.parseTraffic(m.group(1))
+ trafficleft = self.parse_traffic(m.group(1))
premium = True if trafficleft else False
else:
trafficleft = None
@@ -39,4 +39,4 @@ class QuickshareCz(Account):
"jmeno": user}, req=req)
if u'>Takový uživatel neexistuje.<' in html or u'>Špatné heslo.<' in html:
- self.wrongPassword()
+ self.wrong_password()