diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-08-16 17:29:36 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-08-16 17:29:36 +0200 |
commit | cbe4d60d401e4f2cedc38efb375ae38b40fb0c89 (patch) | |
tree | fb8cb7befb09b55d738ab483025f627eb3f0059d /Plugins/UploadedTo.py | |
parent | fixed little bugs (diff) | |
download | pyload-cbe4d60d401e4f2cedc38efb375ae38b40fb0c89.tar.xz |
reconnect-, uploaded.to fix
Diffstat (limited to 'Plugins/UploadedTo.py')
-rw-r--r-- | Plugins/UploadedTo.py | 3 |
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: |