diff options
author | mkaay <mkaay@mkaay.de> | 2010-12-22 13:45:30 +0100 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2010-12-22 13:45:30 +0100 |
commit | dde6a329fdaa5dca48080770dee82cb51cf12585 (patch) | |
tree | d665099c49a0ef1f5c09a9d2f8b19ba09f531437 /module/plugins/accounts/MegauploadCom.py | |
parent | at least its downloading now (diff) | |
download | pyload-dde6a329fdaa5dca48080770dee82cb51cf12585.tar.xz |
refactoring part 1: deprecation warnings, reduced debug, cookie compatibility
Diffstat (limited to 'module/plugins/accounts/MegauploadCom.py')
-rw-r--r-- | module/plugins/accounts/MegauploadCom.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/accounts/MegauploadCom.py b/module/plugins/accounts/MegauploadCom.py index e14cf7a28..d50008b70 100644 --- a/module/plugins/accounts/MegauploadCom.py +++ b/module/plugins/accounts/MegauploadCom.py @@ -31,7 +31,7 @@ class MegauploadCom(Account): __author_mail__ = ("RaNaN@pyload.org") def loadAccountInfo(self, user, req): - page = req.load("http://www.megaupload.com/?c=account") + page = req.getPage("http://www.megaupload.com/?c=account") free = re.findall(r"Account type:</TD>\s*<TD><b>Regular</b>",page,re.IGNORECASE+re.MULTILINE) if free: @@ -47,6 +47,6 @@ class MegauploadCom(Account): 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) + page = req.getPage("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 + self.wrongPassword() |