summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/RehostTo.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/RehostTo.py
parent[Plugin] Fix decoding in load method (diff)
downloadpyload-b1759bc440cd6013837697eb8de540914f693ffd.tar.xz
No camelCase style anymore
Diffstat (limited to 'module/plugins/accounts/RehostTo.py')
-rw-r--r--module/plugins/accounts/RehostTo.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/module/plugins/accounts/RehostTo.py b/module/plugins/accounts/RehostTo.py
index 5f0c1253e..43c0cb029 100644
--- a/module/plugins/accounts/RehostTo.py
+++ b/module/plugins/accounts/RehostTo.py
@@ -6,14 +6,14 @@ from module.plugins.internal.Account import Account
class RehostTo(Account):
__name__ = "RehostTo"
__type__ = "account"
- __version__ = "0.17"
+ __version__ = "0.18"
__description__ = """Rehost.to account plugin"""
__license__ = "GPLv3"
__authors__ = [("RaNaN", "RaNaN@pyload.org")]
- def loadAccountInfo(self, user, req):
+ def load_account_info(self, user, req):
premium = False
trafficleft = None
validuntil = -1
@@ -21,7 +21,7 @@ class RehostTo(Account):
html = self.load("https://rehost.to/api.php",
get={'cmd' : "login", 'user': user,
- 'pass': self.getAccountData(user)['password']})
+ 'pass': self.get_account_data(user)['password']})
try:
session = html.split(",")[1].split("=")[1]
@@ -29,12 +29,12 @@ class RehostTo(Account):
get={'cmd': "get_premium_credits", 'long_ses': session}, req=req)
if html.strip() == "0,0" or "ERROR" in html:
- self.logDebug(html)
+ self.log_debug(html)
else:
traffic, valid = html.split(",")
premium = True
- trafficleft = self.parseTraffic(traffic + "MB")
+ trafficleft = self.parse_traffic(traffic + "MB")
validuntil = float(valid)
finally:
@@ -49,5 +49,5 @@ class RehostTo(Account):
get={'cmd': "login", 'user': user, 'pass': data['password']}, req=req)
if "ERROR" in html:
- self.logDebug(html)
- self.wrongPassword()
+ self.log_debug(html)
+ self.wrong_password()