From 17c5924c57a7e3c243b3915094f10dba6c47ff73 Mon Sep 17 00:00:00 2001 From: Christian Plesche Date: Sun, 23 Nov 2014 20:53:05 +0100 Subject: Update NetloadIn.py some code cleanup --- module/plugins/hoster/NetloadIn.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'module/plugins/hoster') diff --git a/module/plugins/hoster/NetloadIn.py b/module/plugins/hoster/NetloadIn.py index 4efd3839b..a912b438a 100644 --- a/module/plugins/hoster/NetloadIn.py +++ b/module/plugins/hoster/NetloadIn.py @@ -158,7 +158,7 @@ class NetloadIn(Hoster): def download_html(self): - self.logDebug("Netload: Entering download_html (%s)" % self.url) + #self.logDebug("Netload: Entering download_html (%s)" % self.url) page = self.load(self.url, decode=True) t = time() + 30 @@ -180,7 +180,7 @@ class NetloadIn(Hoster): self.pyfile.name = name captchawaited = False - for i in range(2): + for i in range(5): if not page: page = self.load(self.url) @@ -258,11 +258,9 @@ class NetloadIn(Hoster): def proceed(self, url): self.logDebug("Netload: Downloading.." + url) - self.download(url, disposition=True) check = self.checkDownload({"empty": re.compile(r"^$"), "offline": re.compile("The file was deleted")}) - if check == "empty": self.logInfo(_("Downloaded File was empty")) self.retry() -- cgit v1.2.3