diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-06-16 17:31:38 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-06-24 22:40:32 +0200 |
commit | c1764e2fea0bb05164c83a876e8cd58b97f58f25 (patch) | |
tree | be1af8dbf5542d93f1cb97f07dd1793fc7acc2df /module/plugins/accounts/NitroflareCom.py | |
parent | [SimpleHoster] fixurl (diff) | |
download | pyload-c1764e2fea0bb05164c83a876e8cd58b97f58f25.tar.xz |
Update all
Diffstat (limited to 'module/plugins/accounts/NitroflareCom.py')
-rw-r--r-- | module/plugins/accounts/NitroflareCom.py | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/module/plugins/accounts/NitroflareCom.py b/module/plugins/accounts/NitroflareCom.py index 0397b113d..cc2f4e232 100644 --- a/module/plugins/accounts/NitroflareCom.py +++ b/module/plugins/accounts/NitroflareCom.py @@ -28,9 +28,8 @@ class NitroflareCom(Account): trafficleft = None premium = False - html = req.load("https://nitroflare.com/member", - get={'s': "premium"}, - decode=True) + html = self.load("https://nitroflare.com/member", + get={'s': "premium"}, req=req) m = re.search(self.VALID_UNTIL_PATTERN, html) if m: @@ -68,16 +67,15 @@ class NitroflareCom(Account): def login(self, user, data, req): - html = req.load("https://nitroflare.com/login", decode=True) + html = self.load("https://nitroflare.com/login", req=req) token = re.search(self.TOKEN_PATTERN, html).group(1) - html = req.load("https://nitroflare.com/login", + html = self.load("https://nitroflare.com/login", post={'login' : "", 'email' : user, 'password': data['password'], - 'token' : token}, - decode=True) + 'token' : token}, req=req) if re.search(self.LOGIN_FAIL_PATTERN, html): self.wrongPassword() |