From e00ef98491f79ae8aa972ae1473dae4a7b78c07e Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Mon, 13 Apr 2015 17:20:59 +0200 Subject: Cleanup --- pyload/plugin/account/NoPremiumPl.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pyload/plugin/account/NoPremiumPl.py') diff --git a/pyload/plugin/account/NoPremiumPl.py b/pyload/plugin/account/NoPremiumPl.py index cbbc937b5..ac0e64cd4 100644 --- a/pyload/plugin/account/NoPremiumPl.py +++ b/pyload/plugin/account/NoPremiumPl.py @@ -31,6 +31,7 @@ class NoPremiumPl(Account): _usr = None _pwd = None + def loadAccountInfo(self, name, req): self._req = req try: @@ -53,6 +54,7 @@ class NoPremiumPl(Account): "premium": premium }) + def login(self, user, data, req): self._usr = user self._pwd = hashlib.sha1(hashlib.md5(data["password"]).hexdigest()).hexdigest() @@ -68,6 +70,7 @@ class NoPremiumPl(Account): data['usr'] = self._usr data['pwd'] = self._pwd + def createAuthQuery(self): query = self._api_query query["username"] = self._usr @@ -75,6 +78,7 @@ class NoPremiumPl(Account): return query + def runAuthQuery(self): data = self._req.load(self._api_url, post=self.createAuthQuery()) -- cgit v1.2.3