diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-04-13 17:20:59 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-04-13 17:20:59 +0200 |
commit | e00ef98491f79ae8aa972ae1473dae4a7b78c07e (patch) | |
tree | 31be0c7cdcebb61525bcc387bcf15d265a1c494a /pyload/plugin/account/RapideoPl.py | |
parent | Fix except (diff) | |
download | pyload-e00ef98491f79ae8aa972ae1473dae4a7b78c07e.tar.xz |
Cleanup
Diffstat (limited to 'pyload/plugin/account/RapideoPl.py')
-rw-r--r-- | pyload/plugin/account/RapideoPl.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pyload/plugin/account/RapideoPl.py b/pyload/plugin/account/RapideoPl.py index dddb22781..d40c76cb5 100644 --- a/pyload/plugin/account/RapideoPl.py +++ b/pyload/plugin/account/RapideoPl.py @@ -31,6 +31,7 @@ class RapideoPl(Account): _usr = None _pwd = None + def loadAccountInfo(self, name, req): self._req = req try: @@ -53,6 +54,7 @@ class RapideoPl(Account): "premium": premium }) + def login(self, user, data, req): self._usr = user self._pwd = hashlib.md5(data["password"]).hexdigest() @@ -67,6 +69,7 @@ class RapideoPl(Account): data['usr'] = self._usr data['pwd'] = self._pwd + def createAuthQuery(self): query = self._api_query query["username"] = self._usr @@ -74,6 +77,7 @@ class RapideoPl(Account): return query + def runAuthQuery(self): data = self._req.load(self._api_url, post=self.createAuthQuery()) |