summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/XFSAccount.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-09-21 00:54:03 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-09-21 00:54:03 +0200
commit97d25752691aa561c29a91166fdd30302bef2db2 (patch)
treee397bf78d74dcce50cec0f6d46eb414b7a6696f7 /module/plugins/internal/XFSAccount.py
parentMerge branch 'pr/n1788_GammaC0de' into stable (diff)
downloadpyload-97d25752691aa561c29a91166fdd30302bef2db2.tar.xz
[Account] parse_info -> grab_info
Diffstat (limited to 'module/plugins/internal/XFSAccount.py')
-rw-r--r--module/plugins/internal/XFSAccount.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/internal/XFSAccount.py b/module/plugins/internal/XFSAccount.py
index 3f2158a0b..bef8fc828 100644
--- a/module/plugins/internal/XFSAccount.py
+++ b/module/plugins/internal/XFSAccount.py
@@ -40,7 +40,7 @@ class XFSAccount(Account):
LOGIN_FAIL_PATTERN = r'Incorrect Login or Password|account was banned|Error<'
- def parse_info(self, user, password, data, req):
+ def grab_info(self, user, password, data, req):
validuntil = None
trafficleft = None
leechtraffic = None
@@ -151,7 +151,7 @@ class XFSAccount(Account):
set_cookie(self.req.cj, self.HOSTER_DOMAIN, "lang", "english")
if not self.HOSTER_URL:
- self.login_fail(_("Missing HOSTER_URL"))
+ self.fail_login(_("Missing HOSTER_URL"))
else:
self.HOSTER_URL = self.HOSTER_URL.rstrip('/') + "/"
@@ -180,8 +180,8 @@ class XFSAccount(Account):
except ValueError:
if re.search(self.LOGIN_FAIL_PATTERN, html):
- self.login_fail()
+ self.fail_login()
else:
if not 'success' in json or not json['success']:
- self.login_fail()
+ self.fail_login()