diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-10-18 10:52:11 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-10-18 10:52:11 +0200 |
commit | 01da7eb561776ee706c1fd74e49a1b1664951d76 (patch) | |
tree | aa413795fe1e518657d4d234066a82400f56c2ed /module/plugins/accounts/FreakshareCom.py | |
parent | rs fix, more cleanup stuff (diff) | |
download | pyload-01da7eb561776ee706c1fd74e49a1b1664951d76.tar.xz |
closed #157, account request cleanup
Diffstat (limited to 'module/plugins/accounts/FreakshareCom.py')
-rw-r--r-- | module/plugins/accounts/FreakshareCom.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/module/plugins/accounts/FreakshareCom.py b/module/plugins/accounts/FreakshareCom.py index ba9566522..732f9e203 100644 --- a/module/plugins/accounts/FreakshareCom.py +++ b/module/plugins/accounts/FreakshareCom.py @@ -29,8 +29,7 @@ class FreakshareCom(Account): __author_name__ = ("RaNaN") __author_mail__ = ("RaNaN@pyload.org") - def loadAccountInfo(self, user): - req = self.getAccountRequest(user) + def loadAccountInfo(self, user, req): page = req.load("http://freakshare.com/") validuntil = r"ltig bis:</td>\s*<td><b>([0-9 \-:.]+)</b></td>" @@ -45,8 +44,7 @@ class FreakshareCom(Account): return {"validuntil": validuntil, "trafficleft": traffic} - def login(self, user, data): - req = self.getAccountRequest(user) + def login(self, user, data, req): page = req.load("http://freakshare.com/login.html", None, { "submit" : "Login", "user" : user, "pass" : data['password']}, cookies=True) if "Falsche Logindaten!" in page or "Wrong Username or Password!" in page: |