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/MegauploadCom.py | |
parent | rs fix, more cleanup stuff (diff) | |
download | pyload-01da7eb561776ee706c1fd74e49a1b1664951d76.tar.xz |
closed #157, account request cleanup
Diffstat (limited to 'module/plugins/accounts/MegauploadCom.py')
-rw-r--r-- | module/plugins/accounts/MegauploadCom.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/module/plugins/accounts/MegauploadCom.py b/module/plugins/accounts/MegauploadCom.py index e50c62788..dce6fb088 100644 --- a/module/plugins/accounts/MegauploadCom.py +++ b/module/plugins/accounts/MegauploadCom.py @@ -30,8 +30,7 @@ class MegauploadCom(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://www.megaupload.com/?c=account") if 'id="directdownloadstxt">Activate' in page: @@ -43,8 +42,7 @@ class MegauploadCom(Account): return {"validuntil": valid, "trafficleft": -1} - def login(self, user, data): - req = self.getAccountRequest(user) + def login(self, user, data, req): page = req.load("http://www.megaupload.com/?c=login&next=c%3Dpremium", post={ "username" : user, "password" : data["password"], "login" :"1"}, cookies=True) if "Username and password do not match" in page: self.wrongPassword()
\ No newline at end of file |