From 3992d6c3819681c7a97a7e888a35cea5219c7bc5 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Wed, 31 Aug 2011 20:34:34 +0200 Subject: unlimited retries for MU --- module/plugins/Plugin.py | 2 +- module/plugins/hoster/MegauploadCom.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/module/plugins/Plugin.py b/module/plugins/Plugin.py index 1e0f15b33..2ecd3215c 100644 --- a/module/plugins/Plugin.py +++ b/module/plugins/Plugin.py @@ -258,7 +258,7 @@ class Plugin(object): :param wait_time: time to wait in seconds :param reason: reason for retrying, will be passed to fail if max_tries reached """ - if max_tries and self.retries >= max_tries: + if max_tries > 0 and self.retries >= max_tries: if not reason: reason = "Max retries reached" raise Fail(reason) diff --git a/module/plugins/hoster/MegauploadCom.py b/module/plugins/hoster/MegauploadCom.py index bf6be634f..651d408ff 100644 --- a/module/plugins/hoster/MegauploadCom.py +++ b/module/plugins/hoster/MegauploadCom.py @@ -149,7 +149,7 @@ class MegauploadCom(Hoster): if not self.premium: self.req.clearCookies() - self.retry() + self.retry(max_tries=0) def download_html(self): for i in range(3): -- cgit v1.2.3