summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/DebridItaliaCom.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/DebridItaliaCom.py
parent[Plugin] Fix decoding in load method (diff)
downloadpyload-b1759bc440cd6013837697eb8de540914f693ffd.tar.xz
No camelCase style anymore
Diffstat (limited to 'module/plugins/accounts/DebridItaliaCom.py')
-rw-r--r--module/plugins/accounts/DebridItaliaCom.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/accounts/DebridItaliaCom.py b/module/plugins/accounts/DebridItaliaCom.py
index defa1a313..16101d177 100644
--- a/module/plugins/accounts/DebridItaliaCom.py
+++ b/module/plugins/accounts/DebridItaliaCom.py
@@ -9,7 +9,7 @@ from module.plugins.internal.Account import Account
class DebridItaliaCom(Account):
__name__ = "DebridItaliaCom"
__type__ = "account"
- __version__ = "0.14"
+ __version__ = "0.15"
__description__ = """Debriditalia.com account plugin"""
__license__ = "GPLv3"
@@ -20,7 +20,7 @@ class DebridItaliaCom(Account):
WALID_UNTIL_PATTERN = r'Premium valid till: (.+?) \|'
- def loadAccountInfo(self, user, req):
+ def load_account_info(self, user, req):
info = {"premium": False, "validuntil": None, "trafficleft": None}
html = self.load("http://debriditalia.com/", req=req)
@@ -30,7 +30,7 @@ class DebridItaliaCom(Account):
validuntil = time.mktime(time.strptime(m.group(1), "%d/%m/%Y %H:%M"))
info = {"premium": True, "validuntil": validuntil, "trafficleft": -1}
else:
- self.logError(_("Unable to retrieve account information"))
+ self.log_error(_("Unable to retrieve account information"))
return info
@@ -40,4 +40,4 @@ class DebridItaliaCom(Account):
get={'u': user, 'p': data['password']}, req=req)
if 'NO' in html:
- self.wrongPassword()
+ self.wrong_password()