diff options
author | 2015-06-16 17:31:38 +0200 | |
---|---|---|
committer | 2015-06-24 22:40:32 +0200 | |
commit | c1764e2fea0bb05164c83a876e8cd58b97f58f25 (patch) | |
tree | be1af8dbf5542d93f1cb97f07dd1793fc7acc2df /module/plugins/accounts/YibaishiwuCom.py | |
parent | [SimpleHoster] fixurl (diff) | |
download | pyload-c1764e2fea0bb05164c83a876e8cd58b97f58f25.tar.xz |
Update all
Diffstat (limited to 'module/plugins/accounts/YibaishiwuCom.py')
-rw-r--r-- | module/plugins/accounts/YibaishiwuCom.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/module/plugins/accounts/YibaishiwuCom.py b/module/plugins/accounts/YibaishiwuCom.py index 2f1c990ec..9d1d1d38f 100644 --- a/module/plugins/accounts/YibaishiwuCom.py +++ b/module/plugins/accounts/YibaishiwuCom.py @@ -20,7 +20,7 @@ class YibaishiwuCom(Account): def loadAccountInfo(self, user, req): #self.relogin(user) - html = req.load("http://115.com/", decode=True) + html = self.load("http://115.com/", req=req) m = re.search(self.ACCOUNT_INFO_PATTERN, html, re.S) premium = True if m and 'is_vip: 1' in m.group(1) else False @@ -29,12 +29,11 @@ class YibaishiwuCom(Account): def login(self, user, data, req): - html = req.load("https://passport.115.com/?ac=login", + html = self.load("https://passport.115.com/?ac=login", post={"back": "http://www.115.com/", "goto": "http://115.com/", "login[account]": user, - "login[passwd]": data['password']}, - decode=True) + "login[passwd]": data['password']}, req=req) if not 'var USER_PERMISSION = {' in html: self.wrongPassword() |