summaryrefslogtreecommitdiffstats
path: root/Plugins/UploadedTo.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-08-16 17:29:36 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-08-16 17:29:36 +0200
commitcbe4d60d401e4f2cedc38efb375ae38b40fb0c89 (patch)
treefb8cb7befb09b55d738ab483025f627eb3f0059d /Plugins/UploadedTo.py
parentfixed little bugs (diff)
downloadpyload-cbe4d60d401e4f2cedc38efb375ae38b40fb0c89.tar.xz
reconnect-, uploaded.to fix
Diffstat (limited to 'Plugins/UploadedTo.py')
-rw-r--r--Plugins/UploadedTo.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Plugins/UploadedTo.py b/Plugins/UploadedTo.py
index bbfeb7f19..e65be789c 100644
--- a/Plugins/UploadedTo.py
+++ b/Plugins/UploadedTo.py
@@ -61,7 +61,8 @@ class UploadedTo(Plugin):
self.html = self.req.load(url)
try:
- wait_minutes = re.search(r"Or wait (\d+) minutes", self.html).group(1)
+ wait_minutes = re.search(r"Or wait ([\d\-]+) minutes", self.html).group(1)
+ if int(wait_minutes) < 0: wait_minutes = 1
self.time_plus_wait = time() + 60 * int(wait_minutes)
self.want_reconnect = True
except: