diff options
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() |