summaryrefslogtreecommitdiffstats
path: root/pyload/plugin/account/NoPremiumPl.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/plugin/account/NoPremiumPl.py')
-rw-r--r--pyload/plugin/account/NoPremiumPl.py4
1 files changed, 4 insertions, 0 deletions
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())