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/FileserveCom.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/FileserveCom.py')
-rw-r--r-- | module/plugins/accounts/FileserveCom.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/accounts/FileserveCom.py b/module/plugins/accounts/FileserveCom.py index 7754de253..76fc485ed 100644 --- a/module/plugins/accounts/FileserveCom.py +++ b/module/plugins/accounts/FileserveCom.py @@ -31,7 +31,7 @@ class FileserveCom(Account): def loadAccountInfo(self, user, req): - src = req.load("http://fileserve.com/dashboard.php", cookies=True) + src = req.getPage("http://fileserve.com/dashboard.php", cookies=True) m = re.search(r"<td><h4>Premium Until</h4></th> <td><h5>(.*?) E(.)T</h5></td>", src) if m: @@ -44,12 +44,12 @@ class FileserveCom(Account): def login(self, user, data, req): - html = req.load("http://fileserve.com/login.php", + html = req.getPage("http://fileserve.com/login.php", post={"loginUserName": user, "loginUserPassword": data["password"], "autoLogin": "on", "loginFormSubmit": "Login"}, cookies=True) if r'Please Enter a valid user name.' in html: self.wrongPassword() - req.load("http://fileserve.com/dashboard.php", cookies=True) + req.getPage("http://fileserve.com/dashboard.php", cookies=True) |