diff options
| author | 2015-07-25 04:59:27 +0200 | |
|---|---|---|
| committer | 2015-07-25 04:59:27 +0200 | |
| commit | 8f17f875f6e28f73ddb10da59c6464bd04922222 (patch) | |
| tree | 29631cd1f81a40283c71dfdd005b9d24370d5d7f /module/plugins/accounts/FshareVn.py | |
| parent | Fix typo (diff) | |
| download | pyload-8f17f875f6e28f73ddb10da59c6464bd04922222.tar.xz | |
Account rewritten
Diffstat (limited to 'module/plugins/accounts/FshareVn.py')
| -rw-r--r-- | module/plugins/accounts/FshareVn.py | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/module/plugins/accounts/FshareVn.py b/module/plugins/accounts/FshareVn.py index 1e2cd5293..7d7359fd0 100644 --- a/module/plugins/accounts/FshareVn.py +++ b/module/plugins/accounts/FshareVn.py @@ -24,7 +24,7 @@ class FshareVn(Account):      DIRECT_DOWNLOAD_PATTERN = ur'<input type="checkbox"\s*([^=>]*)[^>]*/>Kích hoạt download trực tiếp</dt>' -    def load_account_info(self, user, req): +    def parse_info(self, user, password, data, req):          html = self.load("http://www.fshare.vn/account_info.php")          if re.search(self.LIFETIME_PATTERN, html): @@ -45,15 +45,15 @@ class FshareVn(Account):          return {'validuntil': validuntil, 'trafficleft': trafficleft, 'premium': premium} -    def login(self, user, data, req): +    def login(self, user, password, data, req):          html = self.load("https://www.fshare.vn/login.php",                           post={'LoginForm[email]'     : user, -                               'LoginForm[password]'  : data['password'], +                               'LoginForm[password]'  : password,                                 'LoginForm[rememberMe]': 1,                                 'yt0'                  : "Login"})          if not re.search(r'<img\s+alt="VIP"', html): -            self.wrong_password() +            self.fail()      def get_traffic_left(self): | 
