summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/MegaDebridEu.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/MegaDebridEu.py
parent[Plugin] Fix decoding in load method (diff)
downloadpyload-b1759bc440cd6013837697eb8de540914f693ffd.tar.xz
No camelCase style anymore
Diffstat (limited to 'module/plugins/accounts/MegaDebridEu.py')
-rw-r--r--module/plugins/accounts/MegaDebridEu.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/module/plugins/accounts/MegaDebridEu.py b/module/plugins/accounts/MegaDebridEu.py
index 53c67833c..7a6e36f05 100644
--- a/module/plugins/accounts/MegaDebridEu.py
+++ b/module/plugins/accounts/MegaDebridEu.py
@@ -7,7 +7,7 @@ from module.common.json_layer import json_loads
class MegaDebridEu(Account):
__name__ = "MegaDebridEu"
__type__ = "account"
- __version__ = "0.21"
+ __version__ = "0.22"
__description__ = """Mega-debrid.eu account plugin"""
__license__ = "GPLv3"
@@ -18,8 +18,8 @@ class MegaDebridEu(Account):
API_URL = "https://www.mega-debrid.eu/api.php"
- def loadAccountInfo(self, user, req):
- data = self.getAccountData(user)
+ def load_account_info(self, user, req):
+ data = self.get_account_data(user)
jsonResponse = self.load(self.API_URL,
get={'action': 'connectUser', 'login': user, 'password': data['password']}, req=req)
res = json_loads(jsonResponse)
@@ -27,7 +27,7 @@ class MegaDebridEu(Account):
if res['response_code'] == "ok":
return {"premium": True, "validuntil": float(res['vip_end']), "status": True}
else:
- self.logError(res)
+ self.log_error(res)
return {"status": False, "premium": False}
@@ -36,4 +36,4 @@ class MegaDebridEu(Account):
get={'action': 'connectUser', 'login': user, 'password': data['password']}, req=req)
res = json_loads(jsonResponse)
if res['response_code'] != "ok":
- self.wrongPassword()
+ self.wrong_password()