diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-10-06 16:35:24 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-10-06 16:35:24 +0200 |
commit | 477bc8cb8b7f5d7e0d938c45b48c6cebd1b371d7 (patch) | |
tree | 11499d74b286312d72f1a98c393d438055e3fb33 /module/plugins/hoster/NetloadIn.py | |
parent | freakshare.com, netload fix (diff) | |
download | pyload-477bc8cb8b7f5d7e0d938c45b48c6cebd1b371d7.tar.xz |
closed #147
Diffstat (limited to 'module/plugins/hoster/NetloadIn.py')
-rw-r--r-- | module/plugins/hoster/NetloadIn.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/module/plugins/hoster/NetloadIn.py b/module/plugins/hoster/NetloadIn.py index d03b86d5e..2c9a02964 100644 --- a/module/plugins/hoster/NetloadIn.py +++ b/module/plugins/hoster/NetloadIn.py @@ -133,7 +133,7 @@ class NetloadIn(Hoster): def download_html(self): self.log.debug("Netload: Entering download_html") - page = self.load(self.url, cookies=True) + page = self.load(self.url) if not self.api_data: self.log.debug("API Data may be useless, get details from html page") @@ -146,6 +146,10 @@ class NetloadIn(Hoster): captchawaited = False for i in range(10): + + if not page: + page = self.load(self.url) + self.log.debug("Netload: try number %d " % i) if self.getConf('dumpgen'): print page @@ -177,6 +181,7 @@ class NetloadIn(Hoster): open("dump.html", "w").write(page) self.log.debug("Netload: Could not find captcha, try again from beginning") captchawaited = False + page = False continue file_id = re.search('<input name="file_id" type="hidden" value="(.*)" />', page).group(1) |