From ed2d6e90f08329e28d81f513b9309e8be5d551b1 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sat, 4 Sep 2010 21:09:07 +0200 Subject: netload fix --- module/plugins/hoster/NetloadIn.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'module/plugins/hoster') diff --git a/module/plugins/hoster/NetloadIn.py b/module/plugins/hoster/NetloadIn.py index 61f0e3c12..0a8bbd9af 100644 --- a/module/plugins/hoster/NetloadIn.py +++ b/module/plugins/hoster/NetloadIn.py @@ -96,14 +96,14 @@ class NetloadIn(Hoster): if match: apiurl = "http://netload.in/share/fileinfos2.php" src = self.load(apiurl, cookies=False, get={"file_id": match.group(1)}).strip() - if not src and n < 3: + if not src and n <= 3: sleep(0.2) self.download_api_data(n+1) return - else: + elif not src: self.fail(_("No API Data was send")) - self.log.debug("Netload: APIDATA: "+src.strip()) + self.log.debug("Netload: APIDATA: "+src) self.api_data = {} if src == "unknown_server_data": self.api_data = False -- cgit v1.2.3