diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-10-09 22:12:24 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-10-09 22:12:24 +0200 |
commit | df53830ead89b728d8833c2eaa64d067e366cf4f (patch) | |
tree | c4af0c2b14f58eae6a2ba5d54e2fc89d7831f5b4 /module/plugins/hoster | |
parent | removed debug prints (diff) | |
download | pyload-df53830ead89b728d8833c2eaa64d067e366cf4f.tar.xz |
netload fix
Diffstat (limited to 'module/plugins/hoster')
-rw-r--r-- | module/plugins/hoster/NetloadIn.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/module/plugins/hoster/NetloadIn.py b/module/plugins/hoster/NetloadIn.py index db0e856ab..ff6761d79 100644 --- a/module/plugins/hoster/NetloadIn.py +++ b/module/plugins/hoster/NetloadIn.py @@ -150,6 +150,7 @@ class NetloadIn(Hoster): if not page: page = self.load(self.url) + t = time() + 30 self.log.debug("Netload: try number %d " % i) if self.getConf('dumpgen'): @@ -192,9 +193,9 @@ class NetloadIn(Hoster): file_id = re.search('<input name="file_id" type="hidden" value="(.*)" />', page).group(1) if not captchawaited: wait = self.get_wait_time(page) - if i == 0: wait = 1 # wait only 1 sec contrary to time on website - else: self.waitUntil = time - self.log.info(_("Netload: waiting for captcha %d s.") % (t- time())) + if i == 0: self.waitUntil = time() # wait only 1 sec contrary to time on website + else: self.waitUntil = t + self.log.info(_("Netload: waiting for captcha %d s.") % (self.waitUntil - time())) #self.setWait(wait) self.wait() captchawaited = True |