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/RapidshareCom.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/RapidshareCom.py')
-rw-r--r-- | module/plugins/accounts/RapidshareCom.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/accounts/RapidshareCom.py b/module/plugins/accounts/RapidshareCom.py index a2bb30211..e4472a4db 100644 --- a/module/plugins/accounts/RapidshareCom.py +++ b/module/plugins/accounts/RapidshareCom.py @@ -31,7 +31,7 @@ class RapidshareCom(Account): data = self.getAccountData(user) api_url_base = "http://api.rapidshare.com/cgi-bin/rsapi.cgi" api_param_prem = {"sub": "getaccountdetails_v1", "type": "prem", "login": user, "password": data["password"], "withcookie": 1} - src = req.load(api_url_base, cookies=False, get=api_param_prem) + src = req.getPage(api_url_base, cookies=False, get=api_param_prem) if src.startswith("ERROR"): raise Exception(src) fields = src.split("\n") @@ -51,7 +51,7 @@ class RapidshareCom(Account): def login(self, user, data, req): api_url_base = "http://api.rapidshare.com/cgi-bin/rsapi.cgi" api_param_prem = {"sub": "getaccountdetails_v1", "type": "prem", "login": user, "password": data["password"], "withcookie": 1} - src = req.load(api_url_base, cookies=False, get=api_param_prem) + src = req.getPage(api_url_base, cookies=False, get=api_param_prem) if src.startswith("ERROR"): raise Exception(src+"### Note you have to use your account number for login, instead of name.") fields = src.split("\n") |