summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/UploadedTo.py
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2010-08-12 00:51:10 +0200
committerGravatar mkaay <mkaay@mkaay.de> 2010-08-12 00:51:10 +0200
commitbc12e7c71cc93bcc22f80dba15111091b4528e03 (patch)
tree96b5204ec3ba1c2db53ca809fb909f0f4518fab0 /module/plugins/accounts/UploadedTo.py
parentmerge (diff)
downloadpyload-bc12e7c71cc93bcc22f80dba15111091b4528e03.tar.xz
account plugin change, server methods for accounts
Diffstat (limited to 'module/plugins/accounts/UploadedTo.py')
-rw-r--r--module/plugins/accounts/UploadedTo.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/module/plugins/accounts/UploadedTo.py b/module/plugins/accounts/UploadedTo.py
index 9521f2577..242e6cd5e 100644
--- a/module/plugins/accounts/UploadedTo.py
+++ b/module/plugins/accounts/UploadedTo.py
@@ -44,7 +44,6 @@ class UploadedTo(Account):
validuntil = int(mktime(strptime(raw_valid.strip(), "%d-%m-%Y %H:%M")))
return {"login":user, "validuntil":validuntil, "trafficleft":traffic, "type":self.__name__}
- def login(self):
- for user, data in self.accounts.items():
- req = self.core.requestFactory.getRequest(self.__name__, user)
- req.load("http://uploaded.to/login", None, { "email" : user, "password" : data["password"]}, cookies=True)
+ def login(self, user, data):
+ req = self.core.requestFactory.getRequest(self.__name__, user)
+ req.load("http://uploaded.to/login", None, { "email" : user, "password" : data["password"]}, cookies=True)