summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/DepositfilesCom.py
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2010-12-22 13:45:30 +0100
committerGravatar mkaay <mkaay@mkaay.de> 2010-12-22 13:45:30 +0100
commitdde6a329fdaa5dca48080770dee82cb51cf12585 (patch)
treed665099c49a0ef1f5c09a9d2f8b19ba09f531437 /module/plugins/accounts/DepositfilesCom.py
parentat least its downloading now (diff)
downloadpyload-dde6a329fdaa5dca48080770dee82cb51cf12585.tar.xz
refactoring part 1: deprecation warnings, reduced debug, cookie compatibility
Diffstat (limited to 'module/plugins/accounts/DepositfilesCom.py')
-rw-r--r--module/plugins/accounts/DepositfilesCom.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/accounts/DepositfilesCom.py b/module/plugins/accounts/DepositfilesCom.py
index b0730de8e..b33083da9 100644
--- a/module/plugins/accounts/DepositfilesCom.py
+++ b/module/plugins/accounts/DepositfilesCom.py
@@ -31,7 +31,7 @@ class DepositfilesCom(Account):
def loadAccountInfo(self, user, req):
- src = req.load("http://depositfiles.com/de/gold/")
+ src = req.getPage("http://depositfiles.com/de/gold/")
validuntil = re.search("noch den Gold-Zugriff: <b>(.*?)</b></div>", src).group(1)
validuntil = int(mktime(strptime(validuntil, "%Y-%m-%d %H:%M:%S")))
@@ -41,7 +41,7 @@ class DepositfilesCom(Account):
def login(self, user, data, req):
- req.load("http://depositfiles.com/de/gold/payment.php")
- src = req.load("http://depositfiles.com/de/login.php", get={"return": "/de/gold/payment.php"}, post={"login": user, "password": data["password"]})
+ req.getPage("http://depositfiles.com/de/gold/payment.php")
+ src = req.getPage("http://depositfiles.com/de/login.php", get={"return": "/de/gold/payment.php"}, post={"login": user, "password": data["password"]})
if r'<div class="error_message">Sie haben eine falsche Benutzername-Passwort-Kombination verwendet.</div>' in src:
self.wrongPassword()