summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/EuroshareEu.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-25 04:59:27 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-25 04:59:27 +0200
commit8f17f875f6e28f73ddb10da59c6464bd04922222 (patch)
tree29631cd1f81a40283c71dfdd005b9d24370d5d7f /module/plugins/accounts/EuroshareEu.py
parentFix typo (diff)
downloadpyload-8f17f875f6e28f73ddb10da59c6464bd04922222.tar.xz
Account rewritten
Diffstat (limited to 'module/plugins/accounts/EuroshareEu.py')
-rw-r--r--module/plugins/accounts/EuroshareEu.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/accounts/EuroshareEu.py b/module/plugins/accounts/EuroshareEu.py
index 761644d8f..e61b8e853 100644
--- a/module/plugins/accounts/EuroshareEu.py
+++ b/module/plugins/accounts/EuroshareEu.py
@@ -17,7 +17,7 @@ class EuroshareEu(Account):
__authors__ = [("zoidberg", "zoidberg@mujmail.cz")]
- def load_account_info(self, user, req):
+ def parse_info(self, user, password, data, req):
self.relogin(user)
html = self.load("http://euroshare.eu/customer-zone/settings/")
@@ -32,11 +32,11 @@ class EuroshareEu(Account):
return {'validuntil': validuntil, 'trafficleft': -1, 'premium': premium}
- def login(self, user, data, req):
+ def login(self, user, password, data, req):
html = self.load('http://euroshare.eu/customer-zone/login/',
post={'trvale' : "1",
'login' : user,
- 'password': data['password']})
+ 'password': password})
if u">Nesprávne prihlasovacie meno alebo heslo" in html:
- self.wrong_password()
+ self.fail()