From bc12e7c71cc93bcc22f80dba15111091b4528e03 Mon Sep 17 00:00:00 2001 From: mkaay Date: Thu, 12 Aug 2010 00:51:10 +0200 Subject: account plugin change, server methods for accounts --- module/plugins/accounts/NetloadIn.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'module/plugins/accounts/NetloadIn.py') diff --git a/module/plugins/accounts/NetloadIn.py b/module/plugins/accounts/NetloadIn.py index e0f66e269..5743c7835 100644 --- a/module/plugins/accounts/NetloadIn.py +++ b/module/plugins/accounts/NetloadIn.py @@ -27,8 +27,7 @@ class NetloadIn(Account): __author_name__ = ("RaNaN") __author_mail__ = ("RaNaN@pyload.org") - def login(self): - for user, data in self.accounts.items(): - req = self.core.requestFactory.getRequest(self.__name__, user) - req.load("http://netload.in/index.php", None, { "txtuser" : user, "txtpass" : data['password'], "txtcheck" : "login", "txtlogin" : ""}, cookies=True) - \ No newline at end of file + def login(self, user, data): + req = self.core.requestFactory.getRequest(self.__name__, user) + req.load("http://netload.in/index.php", None, { "txtuser" : user, "txtpass" : data['password'], "txtcheck" : "login", "txtlogin" : ""}, cookies=True) + -- cgit v1.2.3