summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar Jeix <devnull@localhost> 2010-11-25 14:41:43 +0100
committerGravatar Jeix <devnull@localhost> 2010-11-25 14:41:43 +0100
commitf7943b624cf6d7f1b6c4d62576b8de05b9f8b4f3 (patch)
treea16a9cc51230a9f88d92898846e3c63241c80614 /module
parentdepositfiles, fileserve free fixes (diff)
downloadpyload-f7943b624cf6d7f1b6c4d62576b8de05b9f8b4f3.tar.xz
depositfiles fix2
Diffstat (limited to 'module')
-rw-r--r--module/plugins/hoster/DepositfilesCom.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/module/plugins/hoster/DepositfilesCom.py b/module/plugins/hoster/DepositfilesCom.py
index c07178dc9..9ac8f5b9b 100644
--- a/module/plugins/hoster/DepositfilesCom.py
+++ b/module/plugins/hoster/DepositfilesCom.py
@@ -57,13 +57,13 @@ class DepositfilesCom(Hoster):
self.html = self.load(tmp_url, post={"gateway_result":"1"})
- m = re.search(r'Attention! You used up your limit for file downloading! Please try in\s+(\d+)', self.html)
+ m = re.search(r'<span class="html_download_api-limit_interval">(\d+)</span>', self.html)
if m is not None:
wait_time = int( m.group(1) )
- self.log.info( "%s: Traffic used up. Waiting %d minutes." % (self.__name__, wait_time) )
- self.setWait(wait_time * 60 + 61) # add another minute :)
- # do we want this?
- #self.wantReconnect = True
+ self.log.info( "%s: Traffic used up. Waiting %d seconds." % (self.__name__, wait_time) )
+ self.setWait(wait_time)
+ if wait_time > 300:
+ self.wantReconnect = True
self.wait()
self.html = self.load(tmp_url, post={"gateway_result":"1"})