diff options
Diffstat (limited to 'module')
-rw-r--r-- | module/plugins/Plugin.py | 2 | ||||
-rw-r--r-- | 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):
|