summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/MegasharesCom.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/accounts/MegasharesCom.py')
-rw-r--r--module/plugins/accounts/MegasharesCom.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/module/plugins/accounts/MegasharesCom.py b/module/plugins/accounts/MegasharesCom.py
index af0987ed3..3aa26692c 100644
--- a/module/plugins/accounts/MegasharesCom.py
+++ b/module/plugins/accounts/MegasharesCom.py
@@ -9,7 +9,7 @@ from module.plugins.internal.Account import Account
class MegasharesCom(Account):
__name__ = "MegasharesCom"
__type__ = "account"
- __version__ = "0.04"
+ __version__ = "0.05"
__description__ = """Megashares.com account plugin"""
__license__ = "GPLv3"
@@ -19,8 +19,8 @@ class MegasharesCom(Account):
VALID_UNTIL_PATTERN = r'<p class="premium_info_box">Period Ends: (\w{3} \d{1,2}, \d{4})</p>'
- def loadAccountInfo(self, user, req):
- #self.relogin(user)
+ def load_account_info(self, user, req):
+ # self.relogin(user)
html = self.load("http://d01.megashares.com/myms.php", req=req)
premium = False if '>Premium Upgrade<' in html else True
@@ -28,10 +28,10 @@ class MegasharesCom(Account):
validuntil = trafficleft = -1
try:
timestr = re.search(self.VALID_UNTIL_PATTERN, html).group(1)
- self.logDebug(timestr)
+ self.log_debug(timestr)
validuntil = time.mktime(time.strptime(timestr, "%b %d, %Y"))
except Exception, e:
- self.logError(e)
+ self.log_error(e)
return {"validuntil": validuntil, "trafficleft": -1, "premium": premium}
@@ -44,4 +44,4 @@ class MegasharesCom(Account):
"mymspassword" : data['password']}, req=req)
if not '<span class="b ml">%s</span>' % user in html:
- self.wrongPassword()
+ self.wrong_password()