From f7943b624cf6d7f1b6c4d62576b8de05b9f8b4f3 Mon Sep 17 00:00:00 2001
From: Jeix <devnull@localhost>
Date: Thu, 25 Nov 2010 14:41:43 +0100
Subject: depositfiles fix2

---
 module/plugins/hoster/DepositfilesCom.py | 10 +++++-----
 1 file 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"})
-- 
cgit v1.2.3