From be53f2b117c091770ce58f5d2ab479fc1bb57c47 Mon Sep 17 00:00:00 2001 From: Christian Plesche Date: Sun, 23 Nov 2014 23:54:55 +0100 Subject: Update NetloadIn.py restart after waiting period --- module/plugins/hoster/NetloadIn.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'module/plugins/hoster/NetloadIn.py') diff --git a/module/plugins/hoster/NetloadIn.py b/module/plugins/hoster/NetloadIn.py index a912b438a..204862144 100644 --- a/module/plugins/hoster/NetloadIn.py +++ b/module/plugins/hoster/NetloadIn.py @@ -223,17 +223,18 @@ class NetloadIn(Hoster): break if self.check_free_wait(response_page): - self.logDebug("Had to wait for next free slot:") + self.logDebug("Had to wait for next free slot, trying again") + return self.download_html() else: download_url = self.get_file_url(response_page) self.logDebug("Download URL after get_file: " + download_url) - if not download_url.startswith("http://"): + if not download_url.startswith("http://"): self.error("download url: %s" % download_url) - self.wait() + self.wait() - self.url = download_url - #self.logDebug("download_url: " + download_url) - break + self.url = download_url + #self.logDebug("download_url: " + download_url) + break return True def get_file_url(self, page): -- cgit v1.2.3