summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/RapidshareCom.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-10-18 10:52:11 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-10-18 10:52:11 +0200
commit01da7eb561776ee706c1fd74e49a1b1664951d76 (patch)
treeaa413795fe1e518657d4d234066a82400f56c2ed /module/plugins/accounts/RapidshareCom.py
parentrs fix, more cleanup stuff (diff)
downloadpyload-01da7eb561776ee706c1fd74e49a1b1664951d76.tar.xz
closed #157, account request cleanup
Diffstat (limited to 'module/plugins/accounts/RapidshareCom.py')
-rw-r--r--module/plugins/accounts/RapidshareCom.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/module/plugins/accounts/RapidshareCom.py b/module/plugins/accounts/RapidshareCom.py
index 683237674..a2bb30211 100644
--- a/module/plugins/accounts/RapidshareCom.py
+++ b/module/plugins/accounts/RapidshareCom.py
@@ -27,9 +27,8 @@ class RapidshareCom(Account):
__author_name__ = ("mkaay")
__author_mail__ = ("mkaay@mkaay.de")
- def loadAccountInfo(self, user):
+ def loadAccountInfo(self, user, req):
data = self.getAccountData(user)
- req = self.getAccountRequest(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)
@@ -49,8 +48,7 @@ class RapidshareCom(Account):
return tmp
- def login(self, user, data):
- req = self.getAccountRequest(user)
+ 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)