summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/DepositfilesCom.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/DepositfilesCom.py
parentrs fix, more cleanup stuff (diff)
downloadpyload-01da7eb561776ee706c1fd74e49a1b1664951d76.tar.xz
closed #157, account request cleanup
Diffstat (limited to 'module/plugins/accounts/DepositfilesCom.py')
-rw-r--r--module/plugins/accounts/DepositfilesCom.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/module/plugins/accounts/DepositfilesCom.py b/module/plugins/accounts/DepositfilesCom.py
index 70741da0b..4a5792c40 100644
--- a/module/plugins/accounts/DepositfilesCom.py
+++ b/module/plugins/accounts/DepositfilesCom.py
@@ -29,8 +29,7 @@ class DepositfilesCom(Account):
__author_name__ = ("mkaay")
__author_mail__ = ("mkaay@mkaay.de")
- def loadAccountInfo(self, user):
- req = self.getAccountRequest(user)
+ def loadAccountInfo(self, user, req):
src = req.load("http://depositfiles.com/de/gold/")
validuntil = re.search("noch den Gold-Zugriff: <b>(.*?)</b></div>", src).group(1)
@@ -40,7 +39,7 @@ class DepositfilesCom(Account):
tmp = {"validuntil":validuntil, "trafficleft":-1}
return tmp
- def login(self, user, data):
- req = self.getAccountRequest(user)
+ def login(self, user, data, req):
+
req.load("http://depositfiles.com/de/gold/payment.php")
req.load("http://depositfiles.com/de/login.php", get={"return": "/de/gold/payment.php"}, post={"login": user, "password": data["password"]})