diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-08-31 20:34:34 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-08-31 20:34:34 +0200 |
commit | 3992d6c3819681c7a97a7e888a35cea5219c7bc5 (patch) | |
tree | 86035c9faadde0da7283b79b1739ffb1eada6b9e /module/plugins | |
parent | fixes new debug reports, bad header detection (diff) | |
download | pyload-3992d6c3819681c7a97a7e888a35cea5219c7bc5.tar.xz |
unlimited retries for MU
Diffstat (limited to 'module/plugins')
-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):
|